How phpoffice/phpexcel works
PHPExcel is a PHP spreadsheet library for reading, creating, calculating, and writing spreadsheet documents; the repository is archived and its README advises migration. The graph follows the workbook-and-cell model, calculation and caching layers, and format-specific I/O families. The README confirms the broad product workflow, while several format-specific connections are shown dashed because their implementations were not sampled.
Main entry points: PHPExcel.php Workbook · IOFactory.php I/O Factory · Calculation.php Formula Engine · Worksheet.php Worksheets
Components 18
Workbook Model
- Workbook
Classes/PHPExcel.php - Worksheets
Classes/PHPExcel/Worksheet.php - Cells
Classes/PHPExcel/Cell.php - Styles and Metadata
Classes/PHPExcel/Style.php
Calculation Engine
- Formula Engine
Classes/PHPExcel/Calculation.php - Function Catalog
Classes/PHPExcel/Calculation/Function.php - Function Families
Classes/PHPExcel/Calculation
Spreadsheet I/O
- Excel 5 Reader
Classes/PHPExcel/Reader/Excel5.php - Excel 2007 Reader
Classes/PHPExcel/Reader/Excel2007.php - Other Readers
Classes/PHPExcel/Reader - I/O Factory
Classes/PHPExcel/IOFactory.php - Excel 5 Writer
Classes/PHPExcel/Writer/Excel5.php - Excel 2007 Writer
Classes/PHPExcel/Writer/Excel2007.php - OpenDocument Writer
Classes/PHPExcel/Writer/OpenDocument/Content.php - Other Writers
Classes/PHPExcel/Writer
Cell Storage
- Cache Factory
Classes/PHPExcel/CachedObjectStorageFactory.php - Cache Backends
Classes/PHPExcel/CachedObjectStorage
Other components
- Library User
Connections 24
- Library User → Workbook: creates or opens
- Workbook → Worksheets: creates sheets
Classes/PHPExcel.php - Worksheets → Cells: holds cells
- Workbook → Formula Engine: initializes engine
Classes/PHPExcel.php - Cells → Formula Engine: requests evaluation
Classes/PHPExcel/Cell.php - Formula Engine → Function Catalog: uses catalog
Classes/PHPExcel/Calculation.php - Function Catalog → Function Families: maps functions
Classes/PHPExcel/Calculation/Function.php - Library User → I/O Factory: selects I/O
- I/O Factory → Excel 5 Reader: dispatches reads
- I/O Factory → Excel 2007 Reader: dispatches reads
- I/O Factory → Other Readers: dispatches reads
- Excel 5 Reader → Workbook: populates workbook
Classes/PHPExcel/Reader/Excel5.php - Excel 2007 Reader → Workbook: populates workbook
- Other Readers → Workbook: populates workbook
Classes/PHPExcel/Reader/Excel5.php - Library User → Excel 5 Writer: requests export
- Library User → Excel 2007 Writer: requests export
- Library User → OpenDocument Writer: requests export
- Library User → Other Writers: requests export
- Excel 5 Writer → Workbook: serializes workbook
- Excel 2007 Writer → Workbook: serializes workbook
- OpenDocument Writer → Workbook: serializes workbook
- Other Writers → Workbook: serializes workbook
Classes/PHPExcel/Writer/HTML.php - Workbook → Cache Factory: configures cell caching
- Cache Factory → Cache Backends: selects backend
Classes/PHPExcel/CachedObjectStorageFactory.php