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

viest 4c073db1f3 docs: completion преди 7 години
kernel d6e9450b73 release 0.0.1 преди 7 години
tests e8b993e214 project init преди 7 години
.gitignore e8b993e214 project init преди 7 години
CREDITS e8b993e214 project init преди 7 години
EXPERIMENTAL e8b993e214 project init преди 7 години
README.md 4c073db1f3 docs: completion преди 7 години
config.m4 e8b993e214 project init преди 7 години
config.w32 e8b993e214 project init преди 7 години
php_vtiful.h e8b993e214 project init преди 7 години
vtiful.c e8b993e214 project init преди 7 години

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