PHP code example of cristal / pptx
1. Go to this page and download the library: Download cristal/pptx 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/ */
cristal / pptx example snippets
use Cristal\Presentation\PPTX;
/base.pptx');
$endPPTX = new PPTX(__DIR__.'/source/endslide.pptx');
$basePPTX->addSlides($endPPTX->getSlides());
$basePPTX->template([
'materiel' => [
'libelle' => 'Bonjour'
]
]);
$basePPTX->saveAs(__DIR__.'/dist/presentation.pptx');