PHP code example of jleagle / packagist-api-client
1. Go to this page and download the library: Download jleagle/packagist-api-client 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/ */
jleagle / packagist-api-client example snippets
$packagist = new Packagist();
$packages = $packagist->all();
$packagist = new Packagist();
$zend_packages = $packagist->all('*zend*');
$packagist = new Packagist();
$zend_packages = $packagist->search('zend');
$packagist = new Packagist();
$zend_packages = $packagist->search('zend', ['zf2']);
$packagist = new Packagist();
$package = $packagist->package('jleagle', 'packagist-api-client');
$packagist = new Packagist();
$package = $packagist->latestAdded();
$packagist = new Packagist();
$package = $packagist->latestReleased();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.