Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

PhpSpreadsheet

> 编程语言
Open source

A pure PHP library for reading and writing spreadsheet files

14.0K stars0 likes1 views
WebsiteGitHub

About

A pure PHP library for reading and writing spreadsheet files

PhpSpreadsheet

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.

This is the master branch, and is maintained for security and bug fixes.

PHP Version Support

LTS: For maintained branches, support for PHP versions will only be maintained for a period of six months beyond the end of life of that PHP version. Dropping support for versions after that date will not be considered a breaking change.

Currently the required PHP minimum version is PHP 8.2, and we will support that version until 30th June 2027.

See the composer.json for other requirements.

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.

Issues· 107 open

View all issuesOpen on GitHub
  • #5022

    Ods Writer skips tables, and Ods Reader reads every database range as the sheet's autofilter

    Updated Sep 30, 2026
  • #5019

    Xls Writer overwrites a custom palette color when the same color is added with different letter case

    Updated Sep 28, 2026
  • #5017

    Ods Reader: the hyperlink of a non-text cell in a LibreOffice file is lost

    Updated Sep 28, 2026
  • #5015

    Ods: the direction of a right-to-left sheet is lost

    Updated Sep 27, 2026
  • #4923

    EU Cyber Resilience Act (CRA)

    Updated Sep 23, 2026
  • #4996

    VALUE() parses product text like "5V 2.1A - EU Wall Adaptor" as a date

    Updated Sep 18, 2026
  • #4976

    PivotTableBuilder on older Excel Versions

    Updated Sep 9, 2026
  • #4860

    Saving XLSX performance

    Updated Aug 21, 2026
  • #2034

    Indented Hierarchy Rows

    pivot tablesUpdated Aug 9, 2026
  • #4922

    Memory leak

    Updated Jun 22, 2026

> Tags

PHPexcelgnumerichacktoberfestlibreoffice

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言