ivanlanin / PHPPowerPoint

A pure PHP library for writing presentations files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHPPowerPoint

Build Status

PHPPowerPoint is a library written in pure PHP that provides a set of classes to write to different presentation file formats, i.e. OpenXML (.pptx) and OpenDocument (.odp). PHPPowerPoint is an open source project licensed under the terms of LGPL version 3.

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)
  • Output to different file formats: PowerPoint 2007 (.pptx), OpenDocument Presentation (.odp), Serialized Presentation)
  • ... and lots of other things!

Requirements

The following requirements should be met prior to using PHPPowerPoint:

  • PHP version 5.2 or higher
  • PHP extension php_zip enabled
  • PHP extension php_xml enabled

Installation

To install and use PHPPowerPoint, copy the contents of the Classes folder and include PHPPowerPoint.php somewhere in your code like below.

include_once '/path/to/Classes/PHPPowerPoint.php';

After that, you can use the library by creating a new instance of the class.

$phpPowerPoint = new PHPPowerPoint();

Want to learn more?

Read the manual.

Want to contribute?

Fork us on GitHub!

About

A pure PHP library for writing presentations files

License:Other


Languages

Language:PHP 99.8%Language:Shell 0.2%