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

viest ca362e244b DOC(update): add zh-cn document %!s(int64=7) %!d(string=hai) anos
kernel bc76026802 STYLE(code) %!s(int64=7) %!d(string=hai) anos
resource 87e4d0604d DOC: update %!s(int64=7) %!d(string=hai) anos
tests 72808f3541 TEST(phpt): add Italic and Underline test file %!s(int64=7) %!d(string=hai) anos
travis f86bd63069 add: tests %!s(int64=7) %!d(string=hai) anos
.gitignore d8e9bd9e82 wip: tests %!s(int64=7) %!d(string=hai) anos
.travis.yml a15f17b40c TEST(CI): Add PHP Version 7.2 %!s(int64=7) %!d(string=hai) anos
CREDITS e8b993e214 project init %!s(int64=7) %!d(string=hai) anos
EXPERIMENTAL e8b993e214 project init %!s(int64=7) %!d(string=hai) anos
LICENSE 1257e0f825 Add LICENSE file %!s(int64=7) %!d(string=hai) anos
README.md ca362e244b DOC(update): add zh-cn document %!s(int64=7) %!d(string=hai) anos
README_zh.md 20ba84be9b DOC(update): add zh-cn document %!s(int64=7) %!d(string=hai) anos
config.m4 078b47b15d FEAT(const_memory): Large file export %!s(int64=7) %!d(string=hai) anos
config.w32 252b7cdfa2 FIX(w32) %!s(int64=7) %!d(string=hai) anos
excel.php 74a8faea12 add: tests %!s(int64=7) %!d(string=hai) anos
excel_writer.c 1d59aa7017 FIX(zend_mm): heap corrupted %!s(int64=7) %!d(string=hai) anos
php_excel_writer.h 032122a957 FIX(memory): Process end, but not output file, memory leak. %!s(int64=7) %!d(string=hai) anos

README.md

php-excel

Build Status

Why use php-ext-excel-export

Please refer to the image below. PHPExcel has been unable to work properly for memory reasons at 40,000 and 100000 points, but it can be resolved by modifying the ini configuration, but the time may take longer to complete the work;

php-excel

中文文档

Documents

1、Install the dependencies

Ubuntu

sudo apt-get install -y zlib1g-dev

git clone https://github.com/jmcnamara/libxlsxwriter.git && cd libxlsxwriter && make && sudo make install

Mac

brew install libxlsxwriter

Windows

Build the basic PHP build environment.

cd PHP_BUILD_PATH/deps

git clone --recursive https://github.com/jmcnamara/MSVCLibXlsxWriter.git

To build the DLL of the library open the LibXlsxWriterProj/LibXlsxWriter.sln project in MS Visual Studio and build the solution using the "Build -> Build Solution" menu item.

In the default configuration this will build an x64 debug LibXlsxWriter .lib and .dll in:

PHP_BUILD_PATH\deps\MSVCLibXlsxWriter\LibXlsxWriterProj\[x64|x86]\Debug

# or

PHP_BUILD_PATH\deps\MSVCLibXlsxWriter\LibXlsxWriterProj\[x64|x86]\Release

32Bit: Copy .dll files to c:\Windows\System32

64Bit: Same thing

Add the lib path to the LIB environment variable.

2、Get the source code via Git

Unix
git clone https://github.com/viest/php-ext-excel-export.git
cd php-ext-excel-export
phpize && ./configure
make && make install

add the extension=excel_writer.so to php.ini file.

Windows

Clone the project to the ext directory in PHP, configure add --with-excel_writer parameter.

If you need .dll files, you should use the --with-excel_writer=shared parameter.

PHP compilation tutorial

License

PHP License 3.01