Installation
To install Foil you need:
- PHP 5.4+
- Composer
Foil is available on Packagist, so the only thing you need to do is to add it as a dependency for your project.
That can be done by running following command in your project folder:
composer require foil/foil:0.*
As alternative you can directly edit your composer.json
by adding:
{
"require": {
"foil/foil": "~0.6"
}
}
After that, only be sure to include composer autoload file:
require 'vendor/autoload.php';
Dependencies
Foil needs 4 great quality libraries to work:
They will be installed for you by Composer.
When installed in development mode, Foil also requires:
- PHPUnit (MIT)
- Mockery (BSD-3-CLAUSE)
- Brain Monkey (MIT)