axiome974/cristal-pptx

dev-master 2024-05-24 12:26 UTC

This package is auto-updated.

Last update: 2025-05-24 14:33:46 UTC


README

Latest Stable Version GitHub issues GitHub license

This library is a fork of Cristal PPTX with chart resource support. 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 axiome974/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');