cristal / pptx
Installs: 31 254
Dependents: 0
Suggesters: 0
Security: 0
Stars: 23
Watchers: 7
Forks: 6
Open Issues: 11
Requires
- php: >=7.1
- ext-simplexml: *
- ext-zip: *
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-10-29 17:43:42 UTC
README
Cristal PPTX is a PHP Library that allows you to manipulate slides from a Powerpoint PPTX file. Copy slides inside another pptx and templating it using mustache tags.
🚀 Installation using Composer
composer require cristal/pptx
👀 Quick view
<?php use Cristal\Presentation\PPTX; require 'vendor/autoload.php'; $basePPTX = new PPTX(__DIR__.'/source/base.pptx'); $endPPTX = new PPTX(__DIR__.'/source/endslide.pptx'); $basePPTX->addSlides($endPPTX->getSlides()); $basePPTX->template([ 'materiel' => [ 'libelle' => 'Bonjour' ] ]); $basePPTX->saveAs(__DIR__.'/dist/presentation.pptx');