June 2017
Intermediate to advanced
536 pages
9h 49m
English
Much like PHPUnit and Behat, phpspec can be installed as a tool and a library. The tool version being the .phar archive, we can download it from the official GitHub repository, whereas the library version comes packed as a Composer package.
Assuming that we are using the Ubuntu 16.10 (Yakkety Yak) installation, installing phpspec as a tool is easy, as shown in the following commands:
wget https://github.com/phpspec/phpspec/releases/download/3.2.3/phpspec.pharchmod +x phpspec.pharsudo mv phpspec.phar /usr/local/bin/phpspecphpspec --version
This should give us the following output:
Installing phpspec as a library is as easy ...
Read now
Unlock full access