PHP code example of mkalkbrenner / odfphp

1. Go to this page and download the library: Download mkalkbrenner/odfphp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mkalkbrenner / odfphp example snippets


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

  $document->save($path);

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

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

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