Database XLSX Integration
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:^2.0Understand its declared graph#
| Package | Responsibility |
|---|---|
mnb/mnb-phpexcel | Shared reader contracts, sessions, options, progress, and row normalization. |
mnb/mnb-phpexcel | Native low-memory XLSX worksheet streaming. |
mnb/mnb-phpexcel | Validation, mapping, prepared PDO batches, manifests, and failed rows. |
mnb/mnb-phpexcel | Coordinates those modules through LargeExcelDatabaseImportEngine. |
Use Database alone when possible#
Install only mnb/mnb-phpexcel:^2.0 when your application already has iterable rows, imports CSV/JSON/XML/XLS through separate modules, or does not need direct XLSX chunk orchestration.
Was this guide useful?Use GitHub issues for corrections, missing examples, or unclear behavior.
Open an issue