Main Package and Feature Areas
Install the main MNB PHPExcel package and understand which feature area owns each spreadsheet task.
Updated
What you will learn
- Understand the feature areas included in the main package.
- Use one Composer installation for all documented APIs.
- Use the MnbExcel facade as the default entry point.
Complete distribution
Use one package for the entire spreadsheet platform.
The main package is the default choice for documentation examples and applications that work across multiple formats or workflows.
MNB PHPExcel main package
Install once, then choose the facade, fluent session, builder, or specialized format class that best matches the task.
- XLSX, XLS, CSV, JSON, XML, and ODS
- Row streaming and bounded-memory processing
- Workbook reports, formulas, charts, and styling
- PDO imports, validation, and failed-row output
- Upload security and AES-256 XLSX encryption
- Queues, HTTP, email, and scheduled workflows
composer require mnb/mnb-phpexcel:^2.0use Mnb\PHPExcel\MnbExcel;Focused installations
Install only the library your application needs.
Individual packages are useful for narrow services, smaller dependency graphs, and format-specific applications.
XLSX
Native XLSX reading, writing, streaming, formulas, styles, charts, and AES-256 security.
mnb/mnb-phpexcel-xlsx:^2.0XLS
Independent BIFF8 and OLE/CFB reading and writing for legacy Excel workbooks.
mnb/mnb-phpexcel-xls:^2.0CSV
Low-memory delimited-file streaming, dialect detection, encoding conversion, and safe output.
mnb/mnb-phpexcel-csv:^2.0JSON
JSON arrays, workbook-shaped documents, JSON Lines, NDJSON, and streamed data pipelines.
mnb/mnb-phpexcel-json:^2.0XML
Forward-only XML processing with secure parser defaults, schema mapping, and configurable output.
mnb/mnb-phpexcel-xml:^2.0ODS
Native OpenDocument Spreadsheet reading with sheets, projection, dates, and formulas.
mnb/mnb-phpexcel-ods:^2.0Database
Format-neutral PDO imports with mapping, validation, batches, presets, and failed-row reports.
mnb/mnb-phpexcel-database:^2.0Database XLSX
Stream very large XLSX worksheets into PDO with chunks, resume manifests, and failure output.
mnb/mnb-phpexcel-database-xlsx:^2.0Decision guide
Main package or individual library?
Choose by application boundary, not by file extension alone.
Multiple spreadsheet tasks
- Your application reads and writes more than one format.
- You need reports, imports, large-file tools, or workflow services.
- You want every documentation example to work without package changes.
- You prefer one stable facade across the application.
mnb/mnb-phpexcel:^2.0One focused responsibility
- A service processes only XLSX, CSV, JSON, XML, ODS, or XLS.
- You are building a small worker or integration with a narrow boundary.
- You want explicit format ownership in Composer dependencies.
- You do not need cross-format application workflows.
mnb/mnb-phpexcel-xlsx:^2.0Shared API model
Pick the entry point that matches the task.
The package controls installation. The entry point controls how your application works with spreadsheet data.
MnbExcel
Mnb\PHPExcel\MnbExcelOpen files, create workbooks, run imports, start large-file jobs, and access application workflows.
ReadSession
Mnb\PHPExcel\ReadSessionSelect worksheets, map headers, project columns, stream rows, count data, and produce arrays.
WorkbookBuilder
Mnb\PHPExcel\WorkbookBuilderCompose worksheets, apply formatting, add formulas and charts, protect content, and save files.
Format classes
Mnb\PHPExcel\Format\*Use format-specific operations such as XLSX encryption inspection, direct cells, or native XLS helpers.
Install mnb/mnb-phpexcel to follow every guide. Specialized format classes are already included.
MNB PHPExcel 2.x does not require, wrap, suggest, or call PhpSpreadsheet.