phpoffice / phpspreadsheet
PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine
Installs: 200 901 787
Dependents: 1 235
Suggesters: 48
Security: 12
Stars: 13 366
Watchers: 314
Forks: 3 471
Open Issues: 177
Requires
- php: ^8.1
- ext-ctype: *
- ext-dom: *
- ext-fileinfo: *
- ext-gd: *
- ext-iconv: *
- ext-libxml: *
- ext-mbstring: *
- ext-simplexml: *
- ext-xml: *
- ext-xmlreader: *
- ext-xmlwriter: *
- ext-zip: *
- ext-zlib: *
- maennchen/zipstream-php: ^2.1 || ^3.0
- markbaker/complex: ^3.0
- markbaker/matrix: ^3.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/simple-cache: ^1.0 || ^2.0 || ^3.0
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: dev-main
- dompdf/dompdf: ^2.0 || ^3.0
- friendsofphp/php-cs-fixer: ^3.2
- mitoteam/jpgraph: ^10.3
- mpdf/mpdf: ^8.1.1
- phpcompatibility/php-compatibility: ^9.3
- phpstan/phpstan: ^1.1
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.6 || ^10.5
- squizlabs/php_codesniffer: ^3.7
- tecnickcom/tcpdf: ^6.5
Suggests
- ext-intl: PHP Internationalization Functions
- dompdf/dompdf: Option for rendering PDF with PDF Writer
- mitoteam/jpgraph: Option for rendering charts, or including charts with PDF or HTML Writers
- mpdf/mpdf: Option for rendering PDF with PDF Writer
- tecnickcom/tcpdf: Option for rendering PDF with PDF Writer
- dev-master
- 3.5.0
- 3.4.0
- 3.3.0
- 2.3.3
- 2.3.2
- 2.3.0
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.4
- 2.1.3
- 2.1.1
- 2.1.0
- 2.0.0
- 1.29.5
- 1.29.4
- 1.29.2
- 1.29.1
- 1.29.0
- 1.28.0
- 1.27.1
- 1.27.0
- 1.26.0
- 1.25.2
- 1.25.1
- 1.25.0
- 1.24.1
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.1
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.1
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.1
- 1.10.0
- 1.9.0
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.0
- 1.0.0-beta2
- 1.0.0-beta
- dev-gh-readonly-queue/master/pr-4238-f37b1192988daaf1b78645b01b2bbdab24ef0159
- dev-release222
- dev-release210
- dev-release1291
- dev-gh-readonly-queue/master/pr-4237-fb74dcdfa5b538763ab980e977529bc783039aec
- dev-gh-readonly-queue/master/pr-4233-c01b94b2421220c2a7dc2c1634823d739985efd4
- dev-security-patch
- dev-powerkiki
- dev-php81
- dev-The_Dating_Game
- dev-Looping_the_Loop
- dev-Behind_the_Mask
- dev-release
- dev-dependabot/composer/friendsofphp/php-cs-fixer-3.13.1
- dev-PhpBench-Performance-in-CI
- dev-PHPUnit-Version
- dev-2.0-Development
- dev-Column-String-Index-Additional-Validations
- dev-Clear-In-Memory-Cache-when-unsetting_worksheet
- dev-Experiment-Maintaining-Excel-Function-List-as-an-ArrayObject-2
- dev-Experiment-Maintaining-Excel-Function-List-as-an-ArrayObject
- dev-2.0-Cell-Index-Experiment
- dev-Issue-2551_Array-enable-Database-Functions
- dev-PHP8-Sane-Property-Names
- dev-Xlsx-Reader-Refactor-Zip-Reader
- dev-Trend-Unit-Tests
- dev-Excel-Formula-Exception-Codes
This package is auto-updated.
Last update: 2024-11-23 15:34:50 UTC
README
PhpSpreadsheet is a library written in pure PHP and offers a set of classes that allow you to read and write various spreadsheet file formats such as Excel and LibreOffice Calc.
Installation
See the install instructions.
Documentation
Read more about it, including install instructions, in the official documentation. Or check out the API documentation.
Please ask your support questions on StackOverflow, or have a quick chat on Gitter.
Patreon
I am now running a Patreon to support the work that I do on PhpSpreadsheet.
Supporters will receive access to articles about working with PhpSpreadsheet, and how to use some of its more advanced features.
Posts already available to Patreon supporters:
- The Dating Game
- A look at how MS Excel (and PhpSpreadsheet) handle date and time values.
- Looping the Loop
- Advice on Iterating through the rows and cells in a worksheet.
And for Patrons at levels actively using PhpSpreadsheet:
- Behind the Mask
- A look at Number Format Masks.
The Next Article (currently Work in Progress):
- Formula for Success
- How to debug formulae that don't produce the expected result.
My aim is to post at least one article each month, taking a detailed look at some feature of MS Excel and how to use that feature in PhpSpreadsheet, or on how to perform different activities in PhpSpreadsheet.
Planned posts for the future include topics like:
- Tables
- Structured References
- AutoFiltering
- Array Formulae
- Conditional Formatting
- Data Validation
- Value Binders
- Images
- Charts
After a period of six months exclusive to Patreon supporters, articles will be incorporated into the public documentation for the library.
PHPExcel vs PhpSpreadsheet ?
PhpSpreadsheet is the next version of PHPExcel. It breaks compatibility to dramatically improve the code base quality (namespaces, PSR compliance, use of latest PHP language features, etc.).
Because all efforts have shifted to PhpSpreadsheet, PHPExcel will no longer be maintained. All contributions for PHPExcel, patches and new features, should target PhpSpreadsheet master
branch.
Do you need to migrate? There is an automated tool for that.
License
PhpSpreadsheet is licensed under MIT.