Skip to content

brightnucleus/php-releases

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Bright Nucleus PHP Releases Database

Latest Stable Version Total Downloads Latest Unstable Version License

This is a Composer plugin that provides an automated list of PHP releases.

Table Of Contents

Installation

The only thing you need to do to make this work is adding this package as a dependency to your project:

composer require brightnucleus/php-releases

Basic Usage

On each composer install or composer update, the list of PHP releases will be rebuilt.

Usage is pretty straight-forward. Just use one of the two provided static methods:

<?php

$releases = new PHPReleases();

// Check whether a specific version exists.
$exists = $releases->exists( '7.0.0' ); // Returns true.

// Get the release date of a specific version.
$date = $releases->getReleaseDate( '7.0.0' ); // Returns DateTime object for 2015-12-03.

// Get all the release data.
$array = $releases->getAll(); // Returns an array in the format: '<version>' => '<release date>'

Contributing

All feedback / bug reports / pull requests are welcome.

License

This code is released under the MIT license. For the full copyright and license information, please view the LICENSE file distributed with this source code.

About

Automatically fetch a list of PHP releases from the official PHP website.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages