PHPackages                             frantzley/excel-to-json - 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. frantzley/excel-to-json

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

frantzley/excel-to-json
=======================

A PHP package to convert Excel files into JSON easily.

10PHP

Since Sep 12Pushed 9mo agoCompare

[ Source](https://github.com/frantzleyadolphe/excel-to-json-php)[ Packagist](https://packagist.org/packages/frantzley/excel-to-json)[ RSS](/packages/frantzley-excel-to-json/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Excel to JSON for PHP
=====================

[](#excel-to-json-for-php)

ExcelToJson is a simple and reliable PHP library that allows developers to quickly convert Excel spreadsheets into JSON format. It supports both .xls and .xlsx files and handles empty headers gracefully by automatically generating keys.

With optional output to a JSON file, it’s perfect for APIs, data migration, reporting, or any project where you need to transform Excel data into structured JSON. Designed for PHP 8+, it integrates seamlessly into your projects and comes with PHPUnit tests for easy validation.

Key Features:

\----&gt; Convert Excel files to JSON effortlessly.

\----&gt; Supports .xls and .xlsx.

\----&gt; Auto-generates keys for empty headers.

\----&gt; Pretty-printed JSON with Unicode support.

\----&gt; Optional JSON output to a file (Will be on the Next Update).

\----&gt; Compatible with modern PHP (8.0+).

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

[](#installation)

Require the package via Composer:

```
composer require frantzley/excel-to-json
```

Usage
-----

[](#usage)

```
