knplabs/packagist-api
A simple object-oriented PHP wrapper for the Packagist API, offering package search, full package details, and efficient Composer metadata retrieval. Easily list results, limit pages, and access names, descriptions, and versions.
Client now depends on a PSR-18 HTTP client and PSR-17 factories instead of guzzlehttp/guzzle directly. If your project doesn't already have a PSR-18 implementation installed, php-http/discovery (https://github.com/php-http/discovery) will auto-install one (typically Guzzle) for you - no action needed in most cases. Big thanks to @ChloeSartorelli for contributing this change.
GuzzleHttp\Client instance into Client's constructor, this still works as long as it implements Psr\Http\Client\ClientInterface (Guzzle 7+ does). Passing a Guzzle 6-style client or relying on GuzzleHttp\ClientInterface type hints will break.GuzzleHttp\Exception\GuzzleException around calls to this library should now catch Psr\Http\Client\ClientExceptionInterface instead.php-http/discovery, php-http/client-common, psr/http-client-implementation, psr/http-factory-implementation.Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.2.0...v3.0.0
Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.1.4...v2.2.0
Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.1.3...v2.1.4
Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.1.1...v2.1.2
Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.1.0...v2.1.1
New support added for properties:
getGithubWatchers(), getGithubOpenIssues(), getLanguage()getSupport(), getTargetDir(), getDefaultBranch()getAvatarUrl()Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.0.3...v2.1.0
Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.0.2...v2.0.3
Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.0.1...v2.0.2
Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.0.0...v2.0.1
v2.0.0 introduces a minimum of PHP 7.4, and a number of other changes, including:
Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v1.7.0...v2.0.0
Full Changelog: https://github.com/KnpLabs/packagist-api/compare/v2.0.0-rc1...v2.0.0-rc3
Release candidate for v2.0.0 introduces a minimum of PHP 7.4, and a number of other changes, including:
Client::getComposer(), Client::getComposerReleases(), Client::getComposerBranches() for more granular and cacheable Packagist metadataCredits go to: @kmadejski and @Soullivaneuh.
Thank you @chadicus for your contributions!
Thank you @GrahamCampbell, @Soullivaneuh, @psampaz, @Flyingmana & @MarioBlazek for your contributions!
How can I help you explore Laravel packages today?