A small helper class to request package details from the Packagist API
$packagist = new Packagist();
$packages = $packagist->all();
This can return a lot of results and can be filtered like so:
$packagist = new Packagist();
$zend_packages = $packagist->all('*zend*');
This field supports multiple wildcards and character classes.
This will return the same paginated search results as on the Packagist website:
$packagist = new Packagist();
$zend_packages = $packagist->search('zend');
You can also filter the results by supplying an array of tags:
$packagist = new Packagist();
$zend_packages = $packagist->search('zend', ['zf2']);
The third parameter is the page number.
$packagist = new Packagist();
$package = $packagist->package('jleagle', 'packagist-api-client');
$packagist = new Packagist();
$package = $packagist->latestAdded();
$packagist = new Packagist();
$package = $packagist->latestReleased();