Skip to content

mpociot/packagist-api

 
 

Repository files navigation

Fetch package info from Packagist

Latest Version on Packagist Software License Build Status SensioLabsInsight Quality Score Total Downloads

This package makes it easy to search and fetch package info using the Packagist API.

Postcardware

You're free to use this package (it's MIT-licensed), but if it makes it to your production environment you are required to send us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.

The best postcards will get published on the open source page on our website.

Installation

You can install the package via composer:

composer require spatie/packagist-api

Usage

You must pass a Guzzle client to the constructor of Spatie\Packagist\Packagist.

$client = new \GuzzleHttp\Client();

$packagist = new \Spatie\Packagist\Packagist($client);

Get all packages by a specific vendor

$packagist->getVendorPackages('spatie');

Find a package by it's name

$packagist->findPackageByName('spatie/laravel-backup');

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker.

Credits

About Spatie

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

License

The MIT License (MIT). Please see License File for more information.

About

The easiest way to work with the packagist API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%