PHP code example of yectep / phpspreadsheet-bundle
1. Go to this page and download the library: Download yectep/phpspreadsheet-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yectep / phpspreadsheet-bundle example snippets
$bundles = array(
[...]
new Yectep\PhpSpreadsheetBundle\PhpSpreadsheetBundle(),
);
// In your controller
$newSpreadsheet = $this->get('phpoffice.spreadsheet')->createSpreadsheet();
$existingXlsx = $this->get('phpoffice.spreadsheet')->createSpreadsheet('/path/to/file.xlsx');