Getting started
Choose the Right MNB PHPExcel Package
Start with the complete package for general applications, or choose one focused library when a service owns a single file format or database-import responsibility.
Use the complete package unless the service has one narrow responsibility.
For most applications, one dependency is simpler to install, document, and grow. Choose a focused package only when the service boundary is intentionally limited to one format or import workflow.
Complete package
Best for applications that read and write spreadsheets, support more than one format, generate reports, import data, or may grow into those responsibilities later.
composer require mnb/mnb-phpexcel:^2.0- Matches the default examples in this documentation.
- Includes the focused format and database libraries.
- Keeps
MnbExcelas the stable application-facing entry point.
Focused package
Choose one focused dependency for a worker, integration, or service that owns exactly one format or database-import responsibility.
- One file format
- XLSX, XLS, CSV, JSON, XML, or ODS
- Import worker
- Database or Database XLSX
- Avoid when
- The application may need multiple spreadsheet responsibilities.
Install only the capability this service owns.
The package name should describe the boundary of the service. If that sentence becomes complicated, use the complete package instead.
Modern Excel reading, writing, streaming, formulas, styles, charts, and XLSX security.
mnb/mnb-phpexcel-xlsx:^2.0Legacy Excel 97–2003 workbooks with native BIFF8 reading and writing.
mnb/mnb-phpexcel-xls:^2.0CSV and TSV exchange, low-memory streaming, encoding conversion, and safe output.
mnb/mnb-phpexcel-csv:^2.0JSON arrays, workbook-shaped JSON, JSON Lines, and NDJSON pipelines.
mnb/mnb-phpexcel-json:^2.0Secure XML reading, streaming, schema mapping, and configurable output.
mnb/mnb-phpexcel-xml:^2.0OpenDocument Spreadsheet reading with sheets, projection, dates, and formulas.
mnb/mnb-phpexcel-ods:^2.0Format-neutral PDO imports with mapping, validation, batching, and duplicate handling.
mnb/mnb-phpexcel-database:^2.0Direct large-XLSX-to-PDO workflows with chunks, resume manifests, and failure output.
mnb/mnb-phpexcel-database-xlsx:^2.0Start with one public API, then go lower only when the task requires it.
Composer decides what is installed. These entry points decide how your application uses the installed code.
Open files, create workbooks, run imports, and start large-file workflows through the public facade.
Select worksheets, map headers, project columns, stream rows, and collect arrays when needed.
Create worksheets, apply formatting, add formulas or charts, protect content, and save files.
Open the full Packages reference for every package boundary and API entry point →