Installing/configuring

Requirements

Mandatory:

Optional PHP extensions:

Installation

There are two ways to install PHPProject, i.e. via Composer or manually by downloading the library.

Using Composer

To install via Composer, add the following lines to your composer.json:

{
    "require": {
       "phpoffice/phpproject": "dev-master"
    }
}

Manual install

To install manually, download PHPProject package from github. Extract the package and put the contents to your machine. To use the library, include src/PHPProject/Autoloader.php in your script and invoke Autoloader::register.

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

Using 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 PHPProject library folder using browser, point your browser to the samples folder, e.g. http://localhost/PhpProject/samples/.