1

I tried to use PhpSpreadsheet. In Issues section I found that the master branch is now broken.

I tried to use the develop branch, but I can't find a fully functional and ready to copy\paste version. There are no Autoloader.php and etc. like in the stable branch. I just want to use this library.

In master branch I found

enter image description here

After I can use this library like this

require_once 'Autoloader.php';
\PhpOffice\PhpSpreadsheet\Autoloader::register();
$reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader('Excel5');

What can I do to use develop branch without any difficult?

natral
  • 986
  • 1
  • 18
  • 42
autumnrustle
  • 595
  • 1
  • 10
  • 21
  • This library is current still in development, and pre-release; so the best thing for you to do if you want to use it is help the developers. – Mark Baker May 07 '17 at 15:24

2 Answers2

2

I'd suggest you use PHP composer to define the version of 'phpoffice/phpspreadsheet' you want to run.

In my case, i declare this dependency in my project

{
  "require": {
    "phpoffice/phpspreadsheet": "dev-develop"
  }
}
emeraldjava
  • 10,894
  • 26
  • 97
  • 170
1

A tagged beta version has just been released.

{
   "require": {
    "phpoffice/phpspreadsheet": "1.0.0-beta"
  }
}
K. Smith
  • 19
  • 1
  • 5