PhpSpreadsheet README

The project's README from github.com/PHPOffice/PhpSpreadsheet. As one markdown file: README.md.

PhpSpreadsheet

Build Status Code Coverage Total Downloads Latest Stable Version License Join the chat at https://gitter.im/PHPOffice/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:

And for Patrons at levels actively using PhpSpreadsheet:

The Next Article (currently Work in Progress):

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:

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.

PhpSpreadsheet (PHPOffice/PhpSpreadsheet)

Searching Database…

Что это такое?PhpSpreadsheet — это чистая PHP-библиотека для чтения и записи файлов электронных таблиц, таких как Excel и LibreOffice Calc, которой не нужны установленный Excel или любое другое внешнее ПО.
Это самостоятельное приложение или библиотека, которую я подключаю к своему коду?Это PHP-библиотека, которую вы подключаете как зависимость в свой PHP-проект, а не самостоятельное приложение.
Как мне добавить её в проект?Установите её через Composer в свой PHP-проект; в README есть ссылка на официальные инструкции по установке с полными деталями настройки.
Какая версия PHP мне нужна?Минимально требуемая версия — PHP 8.2; она поддерживается до 30 июня 2027 года в соответствии с политикой LTS проекта.
Это то же самое, что PHPExcel?Нет, PhpSpreadsheet — преемник PHPExcel с переписанной и улучшенной кодовой базой (пространства имён, соответствие PSR, современный PHP); он несовместим со старой библиотекой, которая больше не поддерживается.
Могу ли я перенести существующий проект на PHPExcel на PhpSpreadsheet?Да, в README упоминается инструмент автоматической миграции, который помогает преобразовать код PHPExcel в код PhpSpreadsheet.
Какие форматы файлов, помимо xlsx, она умеет читать и записывать?Судя по темам репозитория, помимо стандартных форматов Excel она поддерживает xls, xlsx, ods (OpenDocument Spreadsheet), gnumeric и sylk.
Creator
PHPOffice
Size
82.1 MB
Stars
14K
Age
10y
Commits · 90 Days