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.
setPackagistUrl() allows pointing the client at a custom Packagist-compatible repository, which is relevant for private Packagist, internal package mirrors, or white-labeled registries.all() is especially unsuitable for high-volume production traffic.search(), get(), getComposer(), all(), custom Packagist URLs, and explicit not-found/parse exceptions. Use getComposer() where possible because Packagist caches Composer metadata efficiently. Add caching, timeouts, retries, and an adapter layer; do not call it directly from high-traffic user paths.PackageMetadataProvider interface and budget for a fork or replacement if maintenance stalls. Avoid using it as the foundation for customer-facing, SLA-bound, or dependency-resolution functionality.How can I help you explore Laravel packages today?