PHP code example of phpdocx / phppptx_community
1. Go to this page and download the library: Download phpdocx/phppptx_community 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/ */
phpdocx / phppptx_community example snippets
$pptx = new Phppptx\Create\CreatePptx();
$content = array(
'text' => 'My custom title',
'bold' => true,
'font' => 'Arial',
'fontSize' => 60,
);
$pptx->addText($content, array('placeholder' => array('name' => 'Title 1')));
$pptx->savePptx('output');