1. Go to this page and download the library: Download markwalet/laravel-packagist 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/ */
// All packages
Packagist::getPackagesNames();
// Filter on type.
Packagist::getPackagesNamesByType('composer-plugin');
// Filter on organization
Packagist::getPackagesNamesByVendor('markwalet');
// Search packages by name.
Packagist::searchPackagesByName('packagist');
// Search packages by tag.
Packagist::searchPackagesByTags('psr-3');
// Search packages by type.
Packagist::searchPackagesByType('composer-plugin');
// Combined search.
Packagist::searchPackages('packagist', ['type' => 'library']);
// Get the third page, 10 items per page.
Packagist::searchPackagesByName('packagist', 3, 10);
// Using the Composer metadata. (faster, but less data)
Packagist::getPackageMetadata('markwalet/laravel-packagist');
Packagist::getPackageMetadata('markwalet', 'laravel-packagist');
// Using the API. (slower, cached for 12 hours by Packagist.
Packagist::getPackage('markwalet/laravel-packagist');
Packagist::getPackage('markwalet', 'laravel-packagist');