Search by

phpdocx / phppptx_community

phpdocx.com

phppptx - Create PowerPoint PPTX with PHP

Package info

github.com/phpdocx/phppptx_community

Homepage

pkg:composer/phpdocx/phppptx_community

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 1

v1.0.0 2026-09-03 11:47 UTC

This package is auto-updated.

Last update: 2026-11-05 20:19:33 UTC


README

phppptx is a PHP library designed to dynamically generate presentations in PowerPoint format (PresentationML).

phppptx Community Edition is a free, reduced version of the full phppptx library. It includes a limited subset of the features available in the commercial editions.

The commercial editions provide a much broader feature set, including support for templates, HTML content, charts, headers, footers, watermarks, merging, conversion plugin, encryption, digital signatures, JSON API, and improved performance, together with technical support. Visit the phppptx site for the full feature list and available licenses.

Requirements

  • PHP >= 5.6
  • ext-dom
  • ext-xml
  • ext-exif
  • ext-gd
  • ext-mbstring
  • ext-zip

Installation

Install with Composer

composer require phpdocx/phppptx_community

Download and install

Download the project files and include the bundled autoloader in your PHP script:

<?php
require_once __DIR__ . '/Classes/Phppptx/Create/CreatePptx.php';

This loads the library classes automatically so you can use the phppptx classes in your project.

Examples

The examples folder contains self-contained samples for all the public methods.

For example, to create a PPTX file containing text with some styles:

$pptx = new Phppptx\Create\CreatePptx();

$content = array(
    'text' => 'My custom title',
    'bold' => true,
    'font' => 'Arial',
    'fontSize' => 60,
);
$pptx->addText($content, array('placeholder' => array('name' => 'Title 1')));

$pptx->savePptx('output');

Changelog

See CHANGELOG.md for release notes.

License

This project is distributed under the terms described in the LICENSE file.