Standalone DB + XLSX Library
Install the optional bridge that combines native XLSX streaming with independent PDO validation and insertion workflows.
Updated
LargeExcelDatabaseImportEngine::importToSql()importWorkbookToSql()What you will learn
- Install the integration only when direct large-XLSX-to-PDO streaming is needed.
- Understand the three independent packages connected by the bridge.
- Keep normal database workflows free from an XLSX dependency.
Install the bridge#
composer require mnb/mnb-phpexcel-database-xlsx:^2.0This bridge installs Core, Database, and XLSX transitively. Install it instead of the mono library; the individual packages conflict with mnb/mnb-phpexcel.
Understand its declared graph#
| Package | Responsibility |
|---|---|
mnb/mnb-phpexcel-core | Shared reader contracts, sessions, options, progress, and row normalization. |
mnb/mnb-phpexcel-xlsx | Native low-memory XLSX worksheet streaming. |
mnb/mnb-phpexcel-database | Validation, mapping, prepared PDO batches, manifests, and failed rows. |
mnb/mnb-phpexcel-database-xlsx | Coordinates those libraries through LargeExcelDatabaseImportEngine. |
Use Database alone when possible#
Install only mnb/mnb-phpexcel-database:^2.0 when your application already has iterable rows or does not need direct XLSX chunk orchestration. Add a focused format library only when Database must open that source format itself.
Was this guide useful?Use GitHub issues for corrections, missing examples, or unclear behavior.
Open an issue