phpoffice / phpspreadsheet
PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine
Installs: 199 200 243
Dependents: 1 231
Suggesters: 48
Security: 10
Stars: 13 353
Watchers: 314
Forks: 3 469
Open Issues: 179
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.4.0
- 3.3.0
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 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-4230-2cbf08cacdb89863426294c19d60aba32dd487d2
- dev-gh-readonly-queue/master/pr-4207-e92a4ff1d83fa068009cce5308dc5ba6bcfc2407
- dev-release210
- dev-release222
- dev-release1291
- dev-gh-readonly-queue/master/pr-4205-dbc2e2433ad56a4e132d62a7ba8449ef1873c4c4
- 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-14 01:40:19 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.