Download the PHP package roadrunner-php/version-checker without Composer
On this page you can find all versions of the php package roadrunner-php/version-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roadrunner-php/version-checker
More information about roadrunner-php/version-checker
Files in roadrunner-php/version-checker
Package version-checker
Short Description The package for checking the version of the RoadRunner
License MIT
Homepage https://github.com/roadrunner-php/version-checker
Informations about the package version-checker
RoadRunner VersionChecker
Requirements
Make sure that your server is configured with following PHP version and extensions:
- PHP 8.0+
Installation
You can install the package via composer:
Usage
Use the RoadRunner\VersionChecker\VersionChecker
methods to check the compatibility of the installed RoadRunner
version. The VersionChecker class has three public methods:
- greaterThan - Checks if the installed version of RoadRunner is greater than or equal to the specified version.
If no version is specified, the minimum required version will be determined based on the minimum required version of
the
spiral/roadrunner
package. - lessThan - Checks if the installed version of RoadRunner is less than or equal to the specified version.
- equal - Checks if the installed version of RoadRunner is equal to the specified version.
All three methods throw an RoadRunner\VersionChecker\Exception\UnsupportedVersionException
if the installed version
of RoadRunner does not meet the specified requirements. If RoadRunner is not installed, a
RoadRunner\VersionChecker\Exception\RoadrunnerNotInstalledException
is thrown.
Path to the RoadRunner binary
To configure the VersionChecker
to search for the RoadRunner binary in a location other than the default
(application root with a rr filename), you can bind the RoadRunner\VersionChecker\Version\InstalledInterface
within application container using the RoadRunner\VersionChecker\Version\Installed
class and passing the desired
file path as the $executablePath parameter. After that, you can retrieve the VersionChecker class from
application container.
Example with Spiral Framework container:
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of version-checker with dependencies
symfony/process Version ^5.4 || ^6.0 || ^7.0
composer-runtime-api Version ^2.0
composer/semver Version ^3.3