PHP code example of brightnucleus / php-releases

1. Go to this page and download the library: Download brightnucleus/php-releases library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

brightnucleus / php-releases example snippets




$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>'
BASH
composer