How to use PHPExcel correctly with Symfony 2

前端 未结 6 1882
情话喂你
情话喂你 2020-12-24 09:51

I need to use PHPExcel with a Symfony2 project. Anyone know how to set up the project correctly to use the library? Should i put it in the vendor directory? Wha

6条回答
  •  执念已碎
    2020-12-24 10:16

    As of Symfony 2.3, you can now do this:

    ...
    "require": {
        ...
        "phpoffice/phpexcel": "dev-master"
        ...
    },
    ...
    

    Then just run composer update and dependencies will resolve automatically.

    Or you can do composer require phpoffice/phpexcel:dev-master if you don't want to mess with the composer.json file.

提交回复
热议问题