Skip to content

Expose PHP end of life date, allowing you to check if your version is supported

License

Notifications You must be signed in to change notification settings

cyrosy/php-end-of-life

Repository files navigation

PHP End Of Life

CircleCI

Expose PHP end of life date, allowing you to check if your version is supported.

Installation

composer require cyrosy/php-end-of-life

Usage

<?php
use \Cyrosy\PhpEndOfLife\PhpEndOfLife;

$currentVersion = (float) phpversion();

if (!PhpEndOfLife::isSupported($currentVersion)) {
    user_error(sprintf('Your current PHP version %s is not supported ! You should upgrade to prevent security exploits.', $currentVersion), E_USER_WARNING);
}

About

Expose PHP end of life date, allowing you to check if your version is supported

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published