PHP fast read and write excel file extension
First one is a 500 * 20 - cell .xls file
Second one is a 60k * 20 - cell .xls file
- PHP 5.4+
You can clone the project from github and compile and install.
$ git clone https://github.com/friparia/php-fast-excel
$ cd php-fast-excel
$ /path/to/phpize
$ ./configure
$ make && make install
And then, you need to add a line in your php.ini
file
extension=fast_excel.so
windows is not supported yet
Easily, you can read an array from the function excel_get_array()
like this
<?php
$array = excel_get_array('/path/to/your.xls');
var_dump($array);
//a two dimension array contain all the cells in
?>
Some functions are not currently supported like cell which have its own format and so on, it just support the string format.
It is still under developing.So if you have any ideas or other questions, please let me know in issues!!
-
Read the other types of the cell
-
Read the version below BIFF7 (7 included)
-
Read the .xlsx file
-
Write the .xlsx file