XLS library
Standalone XLS capabilities
Native BIFF8 features for Excel 97–2003 workbooks.
The XLS library independently reads and writes OLE/CFB containers and BIFF8 workbook streams. It is intended for legacy Excel compatibility without PhpSpreadsheet.
- Package
- 1 XLS
- Capabilities
- 10 Documented for this library
- Feature groups
- 4 Package-specific responsibilities
What you will learn
- Understand the native BIFF8 feature set.
- Identify legacy-format limits before choosing XLS.
- Open the correct XLS guide for reading or writing.
What this library includes
This page is limited to mnb/mnb-phpexcel-xls. Features from the monolithic package or another individual library are not mixed into this list.
composer require mnb/mnb-phpexcel-xls:^2.0Mnb\PHPExcel\Format\XlsPackage quick start
The example uses the individual-library API documented by this feature page.
<?php
require __DIR__ . '/vendor/autoload.php';
use Mnb\PHPExcel\Format\Xls;
$rows = Xls::read('customers.xls')
->sheet('Customers')
->withHeaderRow(1)
->rows();
Xls::write($rows, 'customers-copy.xls');Supported capabilities
Search the capabilities owned by this package and open the matching package-specific guide.
| Feature | What it does | Typical use | Support | Guide |
|---|---|---|---|---|
| Native OLE/CFB processing | Read and write compound-file headers, allocation tables, directories, and workbook streams. | Independent legacy Excel support | Supported | Open guide |
| Feature | What it does | Typical use | Support | Guide |
|---|---|---|---|---|
| Worksheet discovery and selection | List BIFF8 worksheets and select them by name or index. | Multi-sheet legacy files | Supported | Open guide |
| Unicode shared strings | Decode BIFF8 shared strings, including continuation records. | International data | Supported | Open guide |
| Headers, row slices, and projection | Normalize rows and retain only required columns or row ranges. | Legacy imports | Supported | Open guide |
| Formulas and cached results | Return formula representations, cached values, or both. | Legacy calculations | Supported | Open guide |
| Dates, formats, and common styles | Interpret date systems, number formats, XF records, widths, heights, and basic style data. | Business reports | Partially supported | Open guide |
| Feature | What it does | Typical use | Support | Guide |
|---|---|---|---|---|
| Native BIFF8 workbook export | Write rows, multiple sheets, shared strings, numbers, dates, booleans, and formulas. | Excel 97–2003 delivery | Supported | Open guide |
| Merged cells and dimensions | Write merged ranges, row heights, column widths, and pane settings. | Structured legacy reports | Supported | Open guide |
| Basic styles and number formats | Apply the supported BIFF8 formatting subset. | Readable legacy reports | Partially supported | Open guide |
| Feature | What it does | Typical use | Support | Guide |
|---|---|---|---|---|
| BIFF8 limits and validation | Enforce worksheet and record constraints and expose unsupported feature errors. | Predictable legacy output | 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 |
|---|---|---|
| Charts, pivots, media, and comments | Not supported: Use XLSX when advanced presentation objects are required. | Use XLSX when advanced presentation objects are required. |
| Password-to-open encryption | Not supported: The current native XLS package does not provide Office password encryption. | The current native XLS package does not provide Office password encryption. |
| Modern worksheet capacity | Partially supported: BIFF8 remains limited to the Excel 97–2003 row and column limits. | BIFF8 remains limited to the Excel 97–2003 row and column limits. |
Was this guide useful?Use GitHub issues for corrections, missing examples, or unclear behavior.
Open an issue