2017 © Pedro Peláez
 

library xlsx-compiler

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

image

websix/xlsx-compiler

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

  • Wednesday, May 13, 2015
  • by websix
  • Repository
  • 3 Watchers
  • 1 Stars
  • 20 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

XlsxCompiler

Build Status, (*1)

Takes a JSON in format:, (*2)

``` JavaScript { "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 }, (*3)


And transforms into a .xlsx file. Usage ----- Install the package: ```composer require websix/xlsx-compiler``` Use the XlsxCompiler class in your script: ``` PHP <?php ... uses Websix\XlsxCompiler\XlsxCompiler; ... $compiler = new XlsxCompiler(); // Generate $json in the shown format before $xlsx = $compiler->compileJson($json); // In $xlsx you have the fileblob tha you can save into a .xlsx file or echo in // the output for browser download

API

Namespace: Websix\XlsxCompiler;

Class name: XlsxCompiler

#compileJson($json) -> blob

Pass in $json a JSON formatted as above and the result will be the xlsx blob, (*4)

The Versions

13/05 2015

dev-master

9999999-dev

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

  Sources   Download

MIT

The Development Requires

13/05 2015

1.1.3

1.1.3.0

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

  Sources   Download

MIT

The Development Requires

13/05 2015

1.1.2

1.1.2.0

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

  Sources   Download

MIT

The Development Requires

13/05 2015

1.1.1

1.1.1.0

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

  Sources   Download

MIT

The Development Requires

13/05 2015

1.1.0

1.1.0.0

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

  Sources   Download

MIT

The Development Requires

13/05 2015

1.0.2

1.0.2.0

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

  Sources   Download

MIT

13/05 2015

1.0.1

1.0.1.0

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

  Sources   Download

MIT

13/05 2015

1.0.0

1.0.0.0

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

  Sources   Download

MIT