1. Go to this page and download the library: Download paquet/packagist-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/ */
paquet / packagist-client example snippets
use Paquet\Packagist\Packagist;
$packagist = Packagist::init();
use Paquet\Packagist\Credentials;
use Paquet\Packagist\Packagist;
$packagist = Packagist::init(
credentials: Credentials::make(
username: 'username',
apiToken: 'api-token',
),
);
use Paquet\Packagist\Options;
use Paquet\Packagist\Packagist;
$packagist = Packagist::init(
options: Options::make(
userAgent: 'my-app/1.0 (mailto:[email protected])',
baseUrl: 'https://packagist.example',
),
);