项目作者: CristalTeam

项目描述 :
🎞️ Copy, move, merge and template Powerpoint files (.pptx) using PHP
高级语言: PHP
项目地址: git://github.com/CristalTeam/pptx.git
创建时间: 2020-05-18T12:53:30Z
项目社区:https://github.com/CristalTeam/pptx

开源协议:MIT License

下载


Cristal PPTX

Latest Stable Version
GitHub issues
GitHub license

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.

:rocket: Installation using Composer

  1. composer require cristal/pptx

:eyes: Quick view

  1. <?php
  2. use Cristal\Presentation\PPTX;
  3. require 'vendor/autoload.php';
  4. $basePPTX = new PPTX(__DIR__.'/source/base.pptx');
  5. $endPPTX = new PPTX(__DIR__.'/source/endslide.pptx');
  6. $basePPTX->addSlides($endPPTX->getSlides());
  7. $basePPTX->template([
  8. 'materiel' => [
  9. 'libelle' => 'Bonjour'
  10. ]
  11. ]);
  12. $basePPTX->saveAs(__DIR__.'/dist/presentation.pptx');