docs/install.md
# Installation
## Requirements
Mandatory:
- PHP 5.3+
- PHP [ZIP extension](http://php.net/manual/en/book.zip.php)
- PHP [XML Parser extension](http://www.php.net/manual/en/xml.installation.php)
Optional:
- PHP [XMLWriter extension](http://php.net/manual/en/book.xmlwriter.php)
## Installation
There are two ways to install PHPPresentation, i.e. via [Composer](http://getcomposer.org) or manually by downloading the library.
### Using Composer
To install via Composer, add the following lines to your `composer.json`:
``` json
{
"require": {
"phpoffice/phppresentation": "dev-master"
}
}
```
### Using manual install
To install manually:
* [download PHPOffice\PHPPresentation package from GitHub](https://github.com/PHPOffice/PHPPresentation/archive/master.zip)
* [download PHPOffice\Common package from GitHub](https://github.com/PHPOffice/Common/archive/master.zip)
* extract the package and put the contents to your machine.
``` php
<?php
require_once 'path/to/PhpPresentation/src/PhpPresentation/Autoloader.php';
\PhpOffice\PhpPresentation\Autoloader::register();
require_once 'path/to/PhpOffice/Common/src/Common/Autoloader.php';
\PhpOffice\Common\Autoloader::register();
```
## Samples
After installation, you can browse and use the samples that we've provided, either by command line or using browser. If you can access your PHPPresentation library folder using browser, point your browser to the `samples` folder, e.g. `http://localhost/PhpPresentation/samples/`.