🚀 PHP Extension for creating and reader XLSX files.
fork from : https://github.com/viest/php-ext-xlswriter.git
|
hace 7 años | |
---|---|---|
kernel | hace 7 años | |
tests | hace 7 años | |
.gitignore | hace 7 años | |
CREDITS | hace 7 años | |
EXPERIMENTAL | hace 7 años | |
README.md | hace 7 años | |
config.m4 | hace 7 años | |
config.w32 | hace 7 años | |
php_vtiful.h | hace 7 años | |
vtiful.c | hace 7 años |
PHP-Excel-Writer
sudo apt-get install -y zlib1g-dev
git clone https://github.com/jmcnamara/libxlsxwriter.git
cd libxlsxwriter
make
sudo make install
git clone https://github.com/viest/php-excel-writer.git
cd php-excel-writer
phpize
./configure
make
make install
try {
$config = [
'path' => '/vagrant/'
];
$excel = new \Vtiful\Kernel\Excel($config);
for($a = 0; $a < 200000; ++$a) {
$data[$a] = ['viest', 20];
}
$excel->fileName("test.xlsx")
->header(['name', 'age'])
->data([
['viest', 20]
])
->output();
} catch (\Exception $exception) {
//....
}
Apache License 2.0