|
1 |
| -# PHPPowerPoint - OpenXML - Read, Write and Create PowerPoint documents in PHP |
| 1 | +#  |
2 | 2 |
|
3 |
| -Project providing a set of classes for the PHP programming language, which allow you to write to and read from different file formats, like PowerPoint 2007, ... This project is built around Microsoft's OpenXML standard and PHP. |
4 |
| -Checkout the Features this class set provides, such as setting presentation meta data (author, title, description, ...), adding slides, adding images to your presentation and much, much more! |
| 3 | +[](https://travis-ci.org/PHPOffice/PHPPowerPoint) |
5 | 4 |
|
6 |
| -## Want to contribute? |
7 | 5 |
|
8 |
| -Fork us! |
| 6 | +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 [LGPL](LICENSE.md). |
9 | 7 |
|
10 |
| -## Requirements |
| 8 | +### Features |
| 9 | + |
| 10 | +- Create an in-memory presentation representation |
| 11 | +- Set presentation meta data (author, title, description, etc) |
| 12 | +- Add slides from scratch or from existing one |
| 13 | +- Supports different fonts and font styles |
| 14 | +- Supports different formatting, styles, fills, gradients |
| 15 | +- Supports hyperlinks and rich-text strings |
| 16 | +- Add images with different styles (positioning, rotation, shadow) |
| 17 | +- Set printing options (header, footer, page margins, paper size, orientation) |
| 18 | +- Output to different file formats: PowerPoint 2007 (.pptx), OpenDocument Presentation (.odp), Serialized Spreadsheet) |
| 19 | +- ... and lots of other things! |
| 20 | + |
| 21 | +### Requirements |
11 | 22 |
|
12 | 23 | The following requirements should be met prior to using PHPPowerPoint:
|
13 | 24 |
|
14 |
| -* PHP version 5.2 or higher |
15 |
| -* PHP extension php_zip enabled |
16 |
| -* PHP extension php_xml enabled |
| 25 | +- PHP version 5.2 or higher |
| 26 | +- PHP extension php_zip enabled |
| 27 | +- PHP extension php_xml enabled |
17 | 28 |
|
18 |
| -## Installation |
| 29 | +### Installation |
19 | 30 |
|
20 |
| -Installation is quite easy: copy the contents of the Classes folder to any location |
21 |
| -in your application required. |
| 31 | +To install and use PHPPowerPoint, copy the contents of the `Classes` folder and include `PHPPowerPoint.php` somewhere in your code like below. |
22 | 32 |
|
23 |
| -Afterwards, make sure you can include all PHPPowerPoint files. This can be achieved by |
24 |
| -respecting a base folder structure, or by setting the PHP include path, for example: |
| 33 | +```php |
| 34 | +include_once '/path/to/Classes/PHPPowerPoint.php'; |
| 35 | +``` |
| 36 | + |
| 37 | +After that, you can use the library by creating a new instance of the class. |
25 | 38 |
|
26 | 39 | ```php
|
27 |
| -set_include_path(get_include_path() . PATH_SEPARATOR . '/path/to/PHPPowerPoint/'); |
| 40 | +$phpPowerPoint = new PHPPowerPoint(); |
28 | 41 | ```
|
29 | 42 |
|
30 |
| -## License |
| 43 | +### Want to learn more? |
| 44 | + |
| 45 | +[Read the manual](Documentation/PHPPowerPoint Manual.md). |
| 46 | + |
| 47 | +### Want to contribute? |
31 | 48 |
|
32 |
| -PHPPowerPoint is licensed under [LGPL (GNU LESSER GENERAL PUBLIC LICENSE)](LICENSE.md) |
| 49 | +[Fork us on GitHub](https://github.com/PHPOffice/PHPPowerPoint)! |
0 commit comments