PHPackages                             websix/xlsx-compiler - 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. websix/xlsx-compiler

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

websix/xlsx-compiler
====================

Xlsx compiler aimed in to be simple, fast and straight to the point

1.1.3(11y ago)030MITJavaScript

Since May 13Pushed 11y ago2 watchersCompare

[ Source](https://github.com/Websix/xlsx-compiler)[ Packagist](https://packagist.org/packages/websix/xlsx-compiler)[ RSS](/packages/websix-xlsx-compiler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

XlsxCompiler
============

[](#xlsxcompiler)

[![Build Status](https://camo.githubusercontent.com/4af5bb3938e0798b21645ab24f636fdef45cbb32459234c91a054e6d8b71b157/68747470733a2f2f7472617669732d63692e6f72672f5765627369782f786c73782d636f6d70696c65722e7376673f6272616e63683d312e312e31)](https://travis-ci.org/Websix/xlsx-compiler)

Takes a JSON in format:

```
{
    "Sheet name": [
        {"A": "A1 Value", "B": "B1 Value"}, // Row
        ...
    ],
    ...
    "Last sheet name": [
        {"A": "A1 Value", "B": "B1 Value"} // Row
    ],
    "maxCols": 2 // Max number of columns to be presented in the sheet
}
```

And transforms into a .xlsx file.

Usage
-----

[](#usage)

Install the package:

`composer require websix/xlsx-compiler`

Use the XlsxCompiler class in your script:

```
