PHPackages                             rubiconinternational/phppresentation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. rubiconinternational/phppresentation

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

rubiconinternational/phppresentation
====================================

PHPPresentation - Read, Create and Write Presentations documents in PHP

v1.1.1(3y ago)0250LGPL-3.0-onlyPHPPHP ^7.1|^8.0CI failing

Since Jul 22Pushed 3mo agoCompare

[ Source](https://github.com/RubiconInternational/PHPPresentation)[ Packagist](https://packagist.org/packages/rubiconinternational/phppresentation)[ Docs](http://phpoffice.github.io)[ RSS](/packages/rubiconinternational-phppresentation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (20)Used By (0)

[![PHPPresentation](https://raw.githubusercontent.com/mvargasmoran/PHPPresentation/develop/docs/images/PHPPresentationLogo.png "PHPPresentation")](https://raw.githubusercontent.com/mvargasmoran/PHPPresentation/develop/docs/images/PHPPresentationLogo.png)
==============================================================================================================================================================================================================================================================

[](#)

[![Latest Stable Version](https://camo.githubusercontent.com/16dc971e3575365cac0697f42955b795c9024c23e2111ee78e197e9e28bc14b0/68747470733a2f2f706f7365722e707567782e6f72672f7068706f66666963652f70687070726573656e746174696f6e2f76)](https://packagist.org/packages/phpoffice/phppresentation)[![Coverage Status](https://camo.githubusercontent.com/655910662270cea6aee51b33da619db0ad9b215bd475dcc4738bcad02a9b2643/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f5048504f66666963652f50485050726573656e746174696f6e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/PHPOffice/PHPPresentation?branch=master)[![Total Downloads](https://camo.githubusercontent.com/4fbb6f403ea1b00b4fa119df93b721994106abb602e8ef0de760463a0bf01b31/68747470733a2f2f706f7365722e707567782e6f72672f7068706f66666963652f70687070726573656e746174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/phpoffice/phppresentation)[![License](https://camo.githubusercontent.com/ebc20fef0e66c3cf7b5c789cee3adbb1ba4e24e10d7299aab5dcb04cb50b695f/68747470733a2f2f706f7365722e707567782e6f72672f7068706f66666963652f70687070726573656e746174696f6e2f6c6963656e7365)](https://packagist.org/packages/phpoffice/phppresentation)

Branch Master : [![PHPPresentation](https://github.com/PHPOffice/PHPPresentation/actions/workflows/php.yml/badge.svg?branch=master)](https://github.com/PHPOffice/PHPPresentation/actions/workflows/php.yml)

PHPPresentation is a library written in pure PHP that provides a set of classes to write to different presentation file formats, i.e. Microsoft [Office Open XML](http://en.wikipedia.org/wiki/Office_Open_XML) (OOXML or OpenXML) or OASIS [Open Document Format for Office Applications](http://en.wikipedia.org/wiki/OpenDocument) (OpenDocument or ODF).

PHPPresentation is an open source project licensed under the terms of [LGPL version 3](https://github.com/PHPOffice/PHPPresentation/blob/develop/COPYING.LESSER). PHPPresentation is aimed to be a high quality software product by incorporating [continuous integration](https://github.com/PHPOffice/PHPPresentation/actions/workflows/php.yml) and [unit testing](https://coveralls.io/github/PHPOffice/PHPPresentation). You can learn more about PHPPresentation by reading the [Developers' Documentation](https://phpoffice.github.io/PHPPresentation) and the [API Documentation](https://phpoffice.github.io/PHPPresentation/docs/).

Read more about PHPPresentation:

- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Getting started](#getting-started)
- [Contributing](#contributing)
- [Developers' Documentation](https://phpoffice.github.io/PHPPresentation/)
- [API Documentation](https://phpoffice.github.io/PHPPresentation/docs/)

### Features

[](#features)

- Create an in-memory presentation representation
- Set presentation meta data (author, title, description, etc)
- Add slides from scratch or from existing one
- Supports different fonts and font styles
- Supports different formatting, styles, fills, gradients
- Supports hyperlinks and rich-text strings
- Add images with different styles (positioning, rotation, shadow)
- Set printing options (header, footer, page margins, paper size, orientation)
- Set transitions between slides
- Output to different file formats: PowerPoint 2007 (.pptx), OpenDocument Presentation (.odp), Serialized Presentation)
- ... and lots of other things!

### Requirements

[](#requirements)

PHPPresentation requires the following:

- PHP 7.1+
- [ZIP Extension](http://php.net/manual/en/book.zip.php)
- [XML Parser Extension](http://www.php.net/manual/en/xml.installation.php)
- [XMLWriter Extension](http://php.net/manual/en/book.xmlwriter.php) (optional, used to write DOCX and ODT)
- [GD Extension](http://php.net/manual/en/book.image.php)

### Installation

[](#installation)

#### Composer method

[](#composer-method)

It is recommended that you install the PHPPresentation library [through composer](http://getcomposer.org/). To do so, add the following lines to your `composer.json`.

```
{
    "require": {
       "phpoffice/phppresentation": "dev-master"
    }
}
```

#### Manual download method

[](#manual-download-method)

Alternatively, you can download the latest release from the [releases page](https://github.com/PHPOffice/PHPPresentation/releases). In this case, you will have to register the autoloader. (Register autoloading is required only if you do not use composer in your project.)

```
require_once 'path/to/PhpPresentation/src/PhpPresentation/Autoloader.php';
\PhpOffice\PhpPresentation\Autoloader::register();
```

You will also need to download the latest PHPOffice/Common release from its [releases page](https://github.com/PHPOffice/Common/releases). And you will also have to register its autoloader, too.

```
require_once 'path/to/PhpOffice/Common/src/Common/Autoloader.php';
\PhpOffice\Common\Autoloader::register();
```

Getting started
---------------

[](#getting-started)

The following is a basic usage example of the PHPPresentation library.

```
// with your own install
require_once 'src/PhpPresentation/Autoloader.php';
\PhpOffice\PhpPresentation\Autoloader::register();
require_once 'src/Common/Autoloader.php';
\PhpOffice\Common\Autoloader::register();

// with Composer
require_once 'vendor/autoload.php';

use PhpOffice\PhpPresentation\PhpPresentation;
use PhpOffice\PhpPresentation\IOFactory;
use PhpOffice\PhpPresentation\Style\Color;
use PhpOffice\PhpPresentation\Style\Alignment;

$objPHPPowerPoint = new PhpPresentation();

// Create slide
$currentSlide = $objPHPPowerPoint->getActiveSlide();

// Create a shape (drawing)
$shape = $currentSlide->createDrawingShape();
$shape->setName('PHPPresentation logo')
      ->setDescription('PHPPresentation logo')
      ->setPath('./resources/phppowerpoint_logo.gif')
      ->setHeight(36)
      ->setOffsetX(10)
      ->setOffsetY(10);
$shape->getShadow()->setVisible(true)
                   ->setDirection(45)
                   ->setDistance(10);

// Create a shape (text)
$shape = $currentSlide->createRichTextShape()
      ->setHeight(300)
      ->setWidth(600)
      ->setOffsetX(170)
      ->setOffsetY(180);
$shape->getActiveParagraph()->getAlignment()->setHorizontal( Alignment::HORIZONTAL_CENTER );
$textRun = $shape->createTextRun('Thank you for using PHPPresentation!');
$textRun->getFont()->setBold(true)
                   ->setSize(60)
                   ->setColor( new Color( 'FFE06B20' ) );

$oWriterPPTX = IOFactory::createWriter($objPHPPowerPoint, 'PowerPoint2007');
$oWriterPPTX->save(__DIR__ . "/sample.pptx");
$oWriterODP = IOFactory::createWriter($objPHPPowerPoint, 'ODPresentation');
$oWriterODP->save(__DIR__ . "/sample.odp");
```

More examples are provided in the [samples folder](samples/). You can also read the [Developers' Documentation](https://phpoffice.github.io/PHPPresentation/) and the [API Documentation](https://phpoffice.github.io/PHPPresentation/docs/) for more detail.

Contributing
------------

[](#contributing)

We welcome everyone to contribute to PHPPresentation. Below are some of the things that you can do to contribute:

- [Fork us](https://github.com/PHPOffice/PHPPresentation/fork) and [request a pull](https://github.com/PHPOffice/PHPPresentation/pulls) to the [master](https://github.com/PHPOffice/PHPPresentation) branch
- Submit [bug reports or feature requests](https://github.com/PHPOffice/PHPPresentation/issues) to GitHub

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance57

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 79.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~271 days

Recently: every ~49 days

Total

12

Last Release

1319d ago

Major Versions

0.9.0 → v1.0.02022-03-16

PHP version history (2 changes)0.2.0PHP &gt;=5.3.0

v1.0.0PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1be7fc1fafbfce23a19b78b13451b98daefd500efd07f97b6ed5fe95dad3ba8?d=identicon)[aelliott](/maintainers/aelliott)

---

Top Contributors

[![Progi1984](https://avatars.githubusercontent.com/u/1533248?v=4)](https://github.com/Progi1984 "Progi1984 (849 commits)")[![ivanlanin](https://avatars.githubusercontent.com/u/15313?v=4)](https://github.com/ivanlanin "ivanlanin (40 commits)")[![devX2712](https://avatars.githubusercontent.com/u/69680982?v=4)](https://github.com/devX2712 "devX2712 (22 commits)")[![maartenba](https://avatars.githubusercontent.com/u/485230?v=4)](https://github.com/maartenba "maartenba (21 commits)")[![mindline-analytics](https://avatars.githubusercontent.com/u/35064946?v=4)](https://github.com/mindline-analytics "mindline-analytics (20 commits)")[![jrking4](https://avatars.githubusercontent.com/u/1873583?v=4)](https://github.com/jrking4 "jrking4 (15 commits)")[![chriskapp](https://avatars.githubusercontent.com/u/2505846?v=4)](https://github.com/chriskapp "chriskapp (10 commits)")[![vincentKool](https://avatars.githubusercontent.com/u/233981?v=4)](https://github.com/vincentKool "vincentKool (8 commits)")[![joshuadoss](https://avatars.githubusercontent.com/u/29265?v=4)](https://github.com/joshuadoss "joshuadoss (8 commits)")[![PowerKiKi](https://avatars.githubusercontent.com/u/72603?v=4)](https://github.com/PowerKiKi "PowerKiKi (6 commits)")[![kw-pr](https://avatars.githubusercontent.com/u/9133572?v=4)](https://github.com/kw-pr "kw-pr (6 commits)")[![pgee70](https://avatars.githubusercontent.com/u/5938974?v=4)](https://github.com/pgee70 "pgee70 (6 commits)")[![bjo3rnf](https://avatars.githubusercontent.com/u/1183009?v=4)](https://github.com/bjo3rnf "bjo3rnf (5 commits)")[![danielbair](https://avatars.githubusercontent.com/u/1430175?v=4)](https://github.com/danielbair "danielbair (5 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (5 commits)")[![delphiki](https://avatars.githubusercontent.com/u/303778?v=4)](https://github.com/delphiki "delphiki (4 commits)")[![tcitworld](https://avatars.githubusercontent.com/u/2197836?v=4)](https://github.com/tcitworld "tcitworld (4 commits)")[![mrjbtc](https://avatars.githubusercontent.com/u/12045341?v=4)](https://github.com/mrjbtc "mrjbtc (3 commits)")[![Brenneisen](https://avatars.githubusercontent.com/u/5833477?v=4)](https://github.com/Brenneisen "Brenneisen (3 commits)")[![jamesggordon](https://avatars.githubusercontent.com/u/650785?v=4)](https://github.com/jamesggordon "jamesggordon (3 commits)")

---

Tags

phppptxPowerPointpptodppresentationsLibreOffice

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rubiconinternational-phppresentation/health.svg)

```
[![Health](https://phpackages.com/badges/rubiconinternational-phppresentation/health.svg)](https://phpackages.com/packages/rubiconinternational-phppresentation)
```

###  Alternatives

[phpoffice/phppresentation

PHPPresentation - Read, Create and Write Presentations documents in PHP

1.4k2.4M25](/packages/phpoffice-phppresentation)[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M708](/packages/maatwebsite-excel)[gotenberg/gotenberg-php

A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!

3685.2M19](/packages/gotenberg-gotenberg-php)[vaites/php-apache-tika

Apache Tika bindings for PHP: extracts text from documents and images (with OCR), metadata and more...

1171.5M2](/packages/vaites-php-apache-tika)[bfinlay/laravel-excel-seeder

Seed the database with Laravel using Excel, XLSX, XLS, CSV, ODS, Gnumeric, XML, HTML, SLK files

3944.4k](/packages/bfinlay-laravel-excel-seeder)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
