infinite-networks/version-warden-bundle

Infinite Networks version warden

1.0.3 2020-06-28 22:44 UTC

This package is auto-updated.

Last update: 2024-11-29 04:09:04 UTC


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.