eightyknots / phpspreadsheet-bundle Goto Github PK
View Code? Open in Web Editor NEWA Symfony bundle to integrate with PHPOffice's PhpSpreadsheet library
License: MIT License
A Symfony bundle to integrate with PHPOffice's PhpSpreadsheet library
License: MIT License
Related to PHPOffice/PhpSpreadsheet#1326
Needs update PhpSpreadsheet to 1.13.0
Hi,
I am using this repo for several projects and I am facing an issue due to a big xls export (more than 30K rows) on a sf 3.4 project.
The PhpSpreadSheet documentation talks about CellCaching to save up memory, but how can I use it from this bundle ? I found no solution anywhere else...
Thanks for any information you can give me :)
Hi,
your bundle can't be installed for a Symfony 3.4 project, here is the error :
spomky-labs/base64url v2.0.1 requires php ^7.1 -> your PHP version (5.6.16) does not satisfy that requirement
Is it possible to change your spomky
library ?
Attempted to load class "Factory" from namespace "Yectep\PhpSpreadsheetBundle".
Did you forget a "use" statement for e.g. "Symfony\Component\Lock\Factory" ?
I'm on Symfony 3.4.6.
Someone has the same problem? Solutions?
After updating project using composer update I get following error message:
Circular reference detected for service "phpoffice.spreadsheet", path: "phpoffice.spreadsheet -> Yectep\PhpSpreadsheetBundle\Factory -> phpoffice.spreadsheet".
Hi, @yectep!
After moving project to Symfony 5, have got an error:
Cannot autowire service "path\to\project\service\class": argument "$spreadsheetFactory" of method "__construct()" references class "Yectep\PhpSpreadsheetBundle\Factory" but no such service exists. You should maybe alias this class to the existing "phpoffice.spreadsheet" service.
It could be fixed by declearing an alias for phpofficebundle_spreadsheet_class. I've created a pull request #18 with related fix. Can you review it?
Hi,
I want to use your bundle with Symfony. But I get this message : A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0.
I wrote your solution in Configuration file but it doesn't work.
Can you to resolve this problem ?
Thank you
Alexandre
I followed the README instructions and when I try to use :
$newSpreadsheet = $this->get('phpoffice.spreadsheet')->createSpreadsheet();
I have this error :
Service "phpoffice.spreadsheet" not found: even though it exists in the app's container, the container inside "App\Controller\MyController" is a smaller service locator that only knows about the "doctrine" ... and "twig" services. Try using dependency injection instead.
There's nothing about "phpoffice.spreadsheet" in my /config/services.yaml
Do I have something to add manually ?
I'm using Symfony 4.4.2
Please
Since Symfony 4 is dead, I would also propose a new version of this bundle, with only the supported versions of Symfony, e.g.
^5.4 || ^6.3 || ^7.0
I think it may be a bit difficult to support version 4 and version 7, and of course I'd much rather see support for the current version of Symfony.
The README shows how to use this bundle by getting the 'phpoffice.spreadsheet' service from the container. This service is private by default starting with Symfony 3.4. Resolution should be to mark service as public in bundle config or show how to use service through dependency injection.
The "Symfony\Component\Config\Definition\Builder\TreeBuilder::root()" method called for the "yectep_phpoffice" configuration is deprecated since Symfony 4.3, pass the root name to the constructor instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.