2017 © Pedro Peláez
 

library odfphp

Simple PHP library to manipulate an ODF document.

image

mkalkbrenner/odfphp

Simple PHP library to manipulate an ODF document.

  • Thursday, March 22, 2018
  • by mkalkbrenner
  • Repository
  • 2 Watchers
  • 0 Stars
  • 4,468 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 7 Versions
  • 11 % Grown

The README.md

odfphp

PHP Library to create and edit OpenDocument formats like .odt, .ods, .odp etc. It provides Shortcuts to manipulate the files in an easy way. It is a fork of hanspolo/odfphp to supports newer PHP versions., (*1)

Basic usage

This section gives a short introduction in the manipulation of documents., (*2)

The first example shows how to create a new document. $type can be text, spreadsheet or an other document type., (*3)

   $document = new ODF();
   $document->create($type);

To save the document, you can use the following code. $path is used as the path where the document will be saved., (*4)

  $document->save($path);

If you want to extend an existing document, you can load it with this code., (*5)

  $document = new ODF();
  $document->open($path);

After initializing your document, you can call:, (*6)

  $content = Text::getContentBody($document);

or, if you are editing an spreadsheet:, (*7)

  $content = Spreadsheet::getContentBody($document);

Now you can add elements to your document. ODFphp provides some shortcuts to do this., (*8)

Installation

Add the content of the src/ directory into your project. To use ODFphp you have to include at least the odf.php file., (*9)

License

ODFphp is licensed under GPL v.3, (*10)

The Versions

22/03 2018

dev-master

9999999-dev https://github.com/mkalkbrenner/odfphp

Simple PHP library to manipulate an ODF document.

  Sources   Download

GPL-3.0+

The Requires

  • ext-zip *

 

odf

22/03 2018

1.0.5

1.0.5.0 https://github.com/mkalkbrenner/odfphp

Simple PHP library to manipulate an ODF document.

  Sources   Download

GPL-3.0+

The Requires

  • ext-zip *

 

odf

28/06 2017

1.0.4

1.0.4.0 https://github.com/mkalkbrenner/odfphp

Simple PHP library to manipulate an ODF document.

  Sources   Download

GPL-3.0+

The Requires

  • ext-zip *

 

odf

27/04 2017

1.0.3

1.0.3.0 https://github.com/mkalkbrenner/odfphp

Simple PHP library to manipulate an ODF document.

  Sources   Download

GPL-3.0+

The Requires

  • ext-zip *

 

odf

26/04 2017

1.0.2

1.0.2.0 https://github.com/mkalkbrenner/odfphp

Simple PHP library to manipulate an ODF document.

  Sources   Download

GPL-3.0+

The Requires

 

odf

20/03 2017

1.0.1

1.0.1.0 https://github.com/mkalkbrenner/odfphp

Simple PHP library to manipulate an ODF document.

  Sources   Download

GPL-3.0+

odf

15/11 2016

1.0.0

1.0.0.0 https://github.com/mkalkbrenner/odfphp

Simple PHP library to manipulate an ODF document.

  Sources   Download

GPL-3.0+

odf