infinite-networks / version-warden-bundle
Infinite Networks version warden
Package info
github.com/infinite-networks/VersionWardenBundle
pkg:composer/infinite-networks/version-warden-bundle
Requires
- php: >=5.6
- ext-zip: *
- symfony/dependency-injection: >=2.3
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A development tool that complains if you are running the wrong version of PHP.
Installation:
In your project's composer.json, you must set your PHP constraint to a specific minor version of PHP.
# composer.json
"require": {
"php": "7.1.*",
Register the bundle in AppKernel.php for the dev and test environments only.
Usage
VersionWardenBundle will automatically detect your expected version by reading composer.lock. No further work is required.
If you run a version of PHP that doesn't match composer.lock, VersionWardenBundle will immediately display an error.
This works in the console and browser.