sergiors / importing
Import your xls, xlt, xlsx, cvs files easily
Installs: 4 519
Dependents: 3
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- phpoffice/phpexcel: ~1.8
- symfony/config: ~2.7|~3.0
Requires (Dev)
- pdepend/pdepend: ~2.0
- phing/phing: ~2.10
- phploc/phploc: ~2.1
- phpmd/phpmd: ~2.2
- phpunit/phpunit: ~4.8
- sebastian/phpcpd: ~2.0
- squizlabs/php_codesniffer: ~2.1
This package is not auto-updated.
Last update: 2024-12-21 20:13:57 UTC
README
Import your xls, xlt, xlsx, xlsm, xltx, xltm, cvs (uff) files easily.
Install
composer require sergiors/importing
How to use
use Symfony\Component\Config\Loader\LoaderResolver; use Symfony\Component\Config\Loader\DelegatingLoader; use Symfony\Component\Config\FileLocator; $loaders = [ new Excel2007FileLoader(new FileLocator()), new Excel5FileLoader(new FileLocator()), new CsvFileLoader(new FileLocator()) ]; $resolver = new LoaderResolver($loaders); $loader = new DelegatingLoader($resolver); $data = $loader->load('your_file.xls'); // return an array // print_r($data);
Be Happy!
License
MIT