Use https://github.com/jakoch/phantomjs-installer instead
A Composer package which installs the PhantomJS binary (Linux, Windows, Mac) into /bin
of your project.
The downloaded binary version will be picked based on che package version. This means that the following configuration will download the 2.1.1 release of PhantomJs:
{
"require": {
"webdriver-binary/binary-phantomjs": "2.1.1"
}
}