XLSX library
Standalone XLSX capabilities
Native XLSX features for reading, writing, security, and scale.
The XLSX library owns modern Excel workbook processing without requiring the monolithic package. It covers normalized row APIs, rich workbook output, package inspection, encryption, and bounded-memory processing.
- Package
- 1 XLSX
- Capabilities
- 17 Documented for this library
- Feature groups
- 6 Package-specific responsibilities
What you will learn
- See which capabilities belong to the standalone XLSX package.
- Separate XLSX features from monolithic application workflows.
- Open the package-specific guide for each supported capability.
What this library includes
This page is limited to mnb/mnb-phpexcel-xlsx. Features from the monolithic package or another individual library are not mixed into this list.
composer require mnb/mnb-phpexcel-xlsx:^2.0Mnb\PHPExcel\Format\XlsxPackage quick start
The example uses the individual-library API documented by this feature page.
<?php
require __DIR__ . '/vendor/autoload.php';
use Mnb\PHPExcel\Format\Xlsx;
$rows = Xlsx::read('orders.xlsx')
->sheet('Orders')
->withHeaderRow(1)
->projectColumns(['Order ID', 'Total'])
->rows();
Xlsx::write($rows, 'orders-copy.xlsx');Supported capabilities
Search the capabilities owned by this package and open the matching package-specific guide.
| Feature | What it does | Typical use | Support | Guide |
|---|---|---|---|---|
| Worksheet discovery and selection | List worksheets, select by name or index, and work with active/default-sheet helpers. | Multi-sheet business workbooks | Supported | Open guide |
| Header rows and associative records | Choose a 1-based header row and receive normalized associative rows. | Imports and APIs | Supported | Open guide |
| Ranges, row limits, and column projection | Read only the source rows and columns required by the application. | Faster targeted processing | Supported | Open guide |
| Formulas and cached values | Return formula text, cached results, or combined formula result objects. | Financial and analytical workbooks | Supported | Open guide |
| Dates and typed scalar values | Normalize Excel dates, booleans, numbers, strings, and empty values. | Reliable domain mapping | Supported | Open guide |
| Feature | What it does | Typical use | Support | Guide |
|---|---|---|---|---|
| Styles, comments, hyperlinks, and images | Inspect rich cell details and workbook presentation metadata. | Template and document analysis | Supported | Open guide |
| Feature | What it does | Typical use | Support | Guide |
|---|---|---|---|---|
| Sheet names, dimensions, and row counts | Inspect workbook structure and count normalized rows before a full workflow. | Upload previews and routing | Supported | Open guide |
| Feature | What it does | Typical use | Support | Guide |
|---|---|---|---|---|
| Simple row export | Write arrays or iterables to a valid XLSX workbook through the package facade. | Downloads and reports | Supported | Open guide |
| Rich workbook data model | Create multiple sheets with formulas, styles, number formats, merged cells, widths, and row heights. | Professional reports | Supported | Open guide |
| Validation, conditional formatting, and filters | Add worksheet validation rules, conditional styles, filters, and freeze panes. | Import templates and dashboards | Supported | Open guide |
| Comments, hyperlinks, images, charts, and pivots | Serialize richer workbook objects and range-based presentation definitions. | Management reporting | Supported | Open guide |
| Feature | What it does | Typical use | Support | Guide |
|---|---|---|---|---|
| Password-to-open encryption | Read and create Standard or Agile encrypted XLSX packages. | Confidential workbooks | Supported | Open guide |
| Workbook and worksheet protection | Restrict workbook structure or worksheet editing separately from file encryption. | Controlled templates | Supported | Open guide |
| ZIP and package integrity checks | Validate paths, compression ratios, package relationships, macros, external links, and malformed input. | Production uploads | Supported | Open guide |
| Feature | What it does | Typical use | Support | Guide |
|---|---|---|---|---|
| Forward-only streaming reads | Process rows without building the complete workbook in PHP memory. | Large imports | Supported | Open guide |
| Chunking, progress, and row errors | Run bounded batches with progress callbacks and structured failure reporting. | Queue workers and ETL | Supported | Open guide |
| Streaming writer | Write large row iterables with controlled shared-string and temporary-file strategies. | Large exports | Supported | Open guide |
No matching feature found in this library.
Feature boundaries
These limits prevent individual-library documentation from being confused with the complete monolithic package.
| Capability | Status | What to use instead |
|---|---|---|
| Legacy .xls files | Not supported: Install mnb/mnb-phpexcel-xls for BIFF8 Excel 97–2003 workbooks. | Install mnb/mnb-phpexcel-xls for BIFF8 Excel 97–2003 workbooks. |
| Database insertion and domain presets | Not supported: Install the Database package; add Database + XLSX for direct large-XLSX-to-PDO orchestration. | Install the Database package; add Database + XLSX for direct large-XLSX-to-PDO orchestration. |
| Application-level multi-format facade | Not supported: Use mnb/mnb-phpexcel when one MnbExcel facade must coordinate several formats and workflows. | Use mnb/mnb-phpexcel when one MnbExcel facade must coordinate several formats and workflows. |
Was this guide useful?Use GitHub issues for corrections, missing examples, or unclear behavior.
Open an issue