13/01
2013
Wallogit.com
2017 © Pedro Peláez
Fetch information about Drupal releases
The Drupal project module provides an XML-based API for getting project and release information for project hosted on the server. This library makes it easy to access data from drupal.org and other sources., (*1)
You need to install the php curl extension., (*2)
# composer.phar install
This example fetches the Drupal project and dumps info about the current release:, (*3)
use Fabsor\DrupalReleaseApi\HTTPReleaseFetcher;
$fetcher = new HTTPReleaseFetcher();
$project = $fetcher->getReleaseInfo('drupal', '7.x');
var_dump($project->getCurrentRelease());