🚀 PHP Extension for creating and reader XLSX files.
fork from : https://github.com/viest/php-ext-xlswriter.git

王杰新 efa62f79ee Merge pull request #2 from viest/dev 7 anni fa
kernel ea45749b5c valgrind test 7 anni fa
tests e8b993e214 project init 7 anni fa
.gitignore e8b993e214 project init 7 anni fa
CREDITS e8b993e214 project init 7 anni fa
EXPERIMENTAL e8b993e214 project init 7 anni fa
README.md 4c073db1f3 docs: completion 7 anni fa
config.m4 74be6e7c7c Adjust the head and data operation 7 anni fa
config.w32 e8b993e214 project init 7 anni fa
php_vtiful.h 74be6e7c7c Adjust the head and data operation 7 anni fa
vtiful.c 74be6e7c7c Adjust the head and data operation 7 anni fa

README.md

PHP-Excel-Writer

1、Install the dependencies

sudo apt-get install -y zlib1g-dev

git clone https://github.com/jmcnamara/libxlsxwriter.git

cd libxlsxwriter

make
sudo make install

2、Get the source code via Git

git clone https://github.com/viest/php-excel-writer.git

cd php-excel-writer

phpize 

./configure

make

make install

3、Examples

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) {
    //....
}

License

Apache License 2.0