phpoffice/phpexcel
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|
PHPExcel, a package developed by phpoffice, is a PHP library designed to read, create, and write Spreadsheet documents in PHP. It offers a comprehensive engine for working with Spreadsheet documents and data. Despite the power it affords, be aware that PHPExcel’s last version was released in 2015 and the project has been officially deprecated since 2017. Therefore, users are strongly advised to migrate to its direct successor, PhpSpreadsheet, or another alternative for handling excel or spreadsheet files with PHP.
Utilizing PHPExcel is quite straightforward; however, as the project is no longer maintained, it's recommended to use PhpSpreadsheet or other alternatives. An example code snippet for reading an Excel file using PHPExcel would look as follows:
require 'PHPExcel/Classes/PHPExcel/IOFactory.php';
try {
$objPHPExcel = PHPExcel_IOFactory::load('Your_Excel_File.xlsx');
} catch(Exception $e) {
die('Error loading file: '.$e->getMessage());
}
Although this works for PHPExcel, check out PhpSpreadsheet for more current and maintained examples.
Unfortunately, PHPExcel is no longer maintained, and detailed documentation may not be readily available or up-to-date. The old documentation and code examples would have been present in the source files in their GitHub repository, but it’s likely outdated. For a more contemporary, maintained, and feature-rich version, the phpoffice’s PhpSpreadsheet is advised, which has the updated and extensive documentation available on their GitHub page. The move to PhpSpreadsheet provides not only refined code but also a library that is continuously updated with security patches and performance improvements.