A Composer package that installs the PhantomJS binary for Linux, Windows, and macOS into your project's /bin directory.
jakoch/phantomjs-installer is a Composer package that automates the installation of the PhantomJS headless browser binary into PHP projects. It downloads the correct platform-specific binary (Linux, Windows, macOS) and makes it available locally, eliminating manual download and setup steps. This ensures consistent and reproducible builds across different development environments.
PHP developers who need PhantomJS as a dependency for tasks like headless browser testing, web scraping, or screenshot generation within their Composer-based projects. It is particularly useful for teams requiring automated, cross-platform binary management.
Developers choose this package because it seamlessly integrates PhantomJS installation into the Composer workflow, handling version management, cross-platform support, and mirror configuration automatically. Its unique selling point is the elimination of manual binary handling, providing reliability and convenience through features like automatic retry on download failures and a PhantomBinary helper class for easy path access.
A Composer Package which installs the PhantomJS binary (Linux, Windows, Mac) into /bin of your project.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically detects and downloads the correct PhantomJS binary for Linux, Windows, and macOS, eliminating manual setup as described in the README's platform support.
Allows version specification via environment variables or composer.json extra section, with automatic retry and version lowering on 404 errors for compatibility.
Generates a PhantomBinary helper class with constants and getters for the binary path, simplifying integration into PHP code, similar to Node.js phantomjs module.
Supports custom CDN URLs for mirrors and platform overrides via environment variables, enabling downloads from regional sources or packaging for different target OSes.
PhantomJS itself is no longer actively maintained, and the package defaults to version 2.1.1, limiting future updates and security patches as noted in the README.
Requires adding scripts to composer.json for post-install commands, which can be error-prone or overlooked by users unfamiliar with Composer events.
Depends on external download sources like Bitbucket or mirrors, which may become unavailable or slow, with the README citing issues like v2.0.0 availability problems.