Registry / serialization / box-spout

box-spout

JSON →
library3.3.0phppackagistunverified

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way.

composer require box/spout
INSTALL
IMPORT
SIG · BOX-SPOUT
B
box-spout
serializationphpv3.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ReaderFactory
use Box\Spout\Reader\ReaderFactory;

Read an XLSX file and iterate over rows.

use Box\Spout\Reader\ReaderFactory; use Box\Spout\Common\Type; $reader = ReaderFactory::create(Type::XLSX); $reader->open('file.xlsx'); foreach ($reader->getSheetIterator() as $sheet) { foreach ($sheet->getRowIterator() as $row) { // process $row } }
Debug
Known issues
breakingSpout 3.x requires PHP 7.2+ and does not support PHP 8.2+ due to deprecated dynamic properties.
fix
Upgrade to Spout 4.x (box/spout:^4.0) for PHP 8.2+ compatibility.
affects: >=3.0,<4.0
Upgrade
Version history
3.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
box-spout — pip install box-spout · libregistry