cristal / pptx
Installs: 32 862
Dependents: 0
Suggesters: 0
Security: 0
Stars: 24
Watchers: 7
Forks: 7
Open Issues: 11
Requires
- php: >=7.1
- ext-simplexml: *
- ext-zip: *
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-12-08 16:18:59 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');