abuel3abbas / phpspreadsheet-classera
PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine
Requires
- php: ^7.4 || ^8.0
- 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: *
- ezyang/htmlpurifier: ^4.15
- maennchen/zipstream-php: ^2.1
- 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: ^1.0 || ^2.0
- friendsofphp/php-cs-fixer: ^3.2
- mitoteam/jpgraph: ^10.2.4
- mpdf/mpdf: ^8.1.1
- phpcompatibility/php-compatibility: ^9.3
- phpstan/phpstan: ^1.1
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^8.5 || ^9.0
- 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
This package is auto-updated.
Last update: 2024-11-05 16:32:16 UTC
README
PhpSpreadsheet-classera is a fork for PhpOffice/PhpSpreadsheet, this fork was made in order to match our classera code without any edit in the project code after the deprecation of PHPExcel.
PHP Version Support
LTS: Support for PHP versions will only be maintained for a period of six months beyond the end of life of that PHP version.
Currently the required PHP minimum version is PHP 7.4, and we will support that version until 28th June 2023.
See the composer.json
for other requirements.
Installation
Use composer to install PhpSpreadsheet into your project:
composer require abuel3abbas/phpspreadsheet-classera
If you are building your installation on a development machine that is on a different PHP version to the server where it will be deployed, or if your PHP CLI version is not the same as your run-time such as php-fpm
or Apache's mod_php
, then you might want to add the following to your composer.json
before installing:
{ "require": { "abuel3abbas/phpspreadsheet-classera": "^1.0" }, "config": { "platform": { "php": "7.4" } } }
and then run
composer install
to ensure that the correct dependencies are retrieved to match your deployment environment.
See CLI vs Application run-time for more details.
One or the other of these libraries is necessary if you want to generate HTML or PDF files that include charts; or to render a Chart to an Image format from within your code.
They are not necessary to define charts for writing to Xlsx
files.
Other file formats don't support writing Charts.
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.
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.
Migration
The main purpose of this repo is to migrate to phpoffice/spreadsheet with the least amount of changes so we edited the classes alises in composer.json to matchup the the classes names in phpexcel, I used a guide to do that with chatgpt here is the guide link : https://phpspreadsheet.readthedocs.io/en/latest/topics/migration-from-PHPExcel/