Setup¶
Before you install XRL, make sure you have a working PHP installation.
XRL requires PHP 5.3.4 or later and the following PHP extensions:
- XMLReader
- XMLWriter
- libxml
- GMP
- PCRE
- SPL
Note
Use php -v and php -m to retrieve information about your PHP version and available extensions.
XRL can be installed using a PHAR archive, Composer or from Sources. The PHAR approach is recommended.
PHAR archive¶
Download the latest PHAR available on https://github.com/fpoirotte/XRL/releases and save it to your computer.
(For Unix/Linux users) Optionally, make the file executable.
Composer¶
XRL can be installed using the Composer dependency manager. Just add fpoirotte/xrl to the dependencies in your composer.json:
$ php composer.phar require "fpoirotte/xrl:*"
Sources¶
To install XRL from sources, use git to clone the repository:
$ git clone https://github.com/fpoirotte/XRL.git /new/path/for/XRL