2017 © Pedro Peláez
 

library ods-php-generator

Open Document Spreadsheet (.ods) generator

image

lapinator/ods-php-generator

Open Document Spreadsheet (.ods) generator

  • Wednesday, April 20, 2016
  • by Lapinator
  • Repository
  • 2 Watchers
  • 4 Stars
  • 442 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 2 Versions
  • 34 % Grown

The README.md

odsPhpGenerator

odsPhpGenerator is a library written in PHP to generate Open Document Spreadsheet (.ods), (*1)

Avatars in trending repos, (*2)

Features

  • UTF-8 Encoding
  • Multi tables
  • Merge Cells
  • Formula
  • Images
  • And more

Install

By composer :, (*3)

``` bash $ composer require lapinator/ods-php-generator, (*4)


## Example ``` php use odsPhpGenerator\ods; use odsPhpGenerator\odsTable; use odsPhpGenerator\odsTableRow; use odsPhpGenerator\odsTableCellString; // Load library require_once '../vendor/autoload.php'; // Create Ods object $ods = new ods(); // Create table named 'table 1' $table = new odsTable('table 1'); // Create the first row $row = new odsTableRow(); // Create and add 2 cell 'Hello' and 'World' $row->addCell( new odsTableCellString("Hello") ); $row->addCell( new odsTableCellString("World") ); // Attach row to table $table->addRow($row); // Attach talble to ods $ods->addTable($table); // Download the file $ods->downloadOdsFile("HelloWorld.ods");

More examples in directory examles, (*5)

The Versions

20/04 2016

dev-master

9999999-dev https://odsphpgenerator.lapinator.net/

Open Document Spreadsheet (.ods) generator

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.4

 

ods libreoffice

14/04 2016

v0.0.3

0.0.3.0 https://odsphpgenerator.lapinator.net/

Open Document Spreadsheet (.ods) generator

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3

 

ods libreoffice