1. Go to this page and download the library: Download knplabs/packagist-api 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/ */
$client->setPackagistUrl('https://custom.packagist.site.org');
// Or in the constructor:
$client = new Client(packagistUrl: 'https://custom.packagist.site.org');
use GuzzleHttp\Client as GuzzleClient;
use Packagist\Api\Client;
$client = new Client(new GuzzleClient(['timeout' => 5]));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.