Download the PHP package knplabs/packagist-api without Composer
On this page you can find all versions of the php package knplabs/packagist-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download knplabs/packagist-api
More information about knplabs/packagist-api
Files in knplabs/packagist-api
Package packagist-api
Short Description Packagist API client.
License MIT
Homepage http://knplabs.com
Informations about the package packagist-api
Packagist API
Simple object oriented wrapper for Packagist API.
Requirements
- PHP ^7.4 or ^8.0 (for PHP 7.1-7.3 please use the 1.x release line)
Installation
The recommended way to install Packagist API is through composer:
Usage
Search for packages:
You can limit results to a desired amount of pages:
Get package details:
Gets full package details, generated dynamically by the Packagist API. Consider using getComposer() instead to use the Packagist API more efficiently if you don't need all the full metadata for a package.
Get composer details: {#get-composer-details}
Similar to get()
, but uses Composer metadata which is Packagist's preferred
way of retrieving details, since responses are cached efficiently as static files
by the Packagist service. The response lacks some metadata that is provided
by get()
, see Packagist API documentation
for details. Returns multiple packages, you need to select the requested
one from the indexed array.
List all packages:
They can be filtered by type or vendor:
Custom Packagist repositories
You can also set a custom Packagist repository URL:
Errors
- A
Packagist\Api\PackageNotFoundException
will be thrown when the Packagist API returns a 404 response. - An
\InvalidArgumentException
will be thrown when the response from Packagist was not able to be parsed.
License
packagist-api
is licensed under the MIT License - see the LICENSE file for details.
Maintainers
KNPLabs is looking for maintainers (see why).
If you are interested, feel free to open a PR to ask to be added as a maintainer.
We’ll be glad to hear from you :)
This library is maintained by the following people (alphabetically sorted) :
- @robbieaverill
All versions of packagist-api with dependencies
guzzlehttp/guzzle Version ^6.0 || ^7.0
doctrine/inflector Version ^1.0 || ^2.0
ext-json Version *
composer/metadata-minifier Version ^1.0
composer/semver Version ^1.0|^2.0|^3.0