PHPackages                             tandrezone/xslttojson - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tandrezone/xslttojson

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tandrezone/xslttojson
=====================

Convert XLSX files with multiple sheets to JSON

00PHP

Since Apr 21Pushed 1mo agoCompare

[ Source](https://github.com/tandrezone/xslttojson)[ Packagist](https://packagist.org/packages/tandrezone/xslttojson)[ RSS](/packages/tandrezone-xslttojson/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (3)Used By (0)

xslttojson
==========

[](#xslttojson)

Convert an XLSX file (with one or more sheets) to JSON. Every worksheet becomes a key in the output object whose value is an array of row objects. The first row of each sheet is used as the header – its cell values become the property names for all subsequent rows.

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Composer

Installation
------------

[](#installation)

```
composer require tandrezone/xslttojson
```

Or clone and install locally:

```
git clone https://github.com/tandrezone/xslttojson.git
cd xslttojson
composer install
```

Library usage
-------------

[](#library-usage)

```
