Fetch package info from Packagist

1.2.1 2019-04-10 15:00 UTC

This package is auto-updated.

Last update: 2020-01-17 11:36:22 UTC


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

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


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

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

All postcards are published on our website.


You can install the package via composer:

composer require spatie/packagist-api


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


Find a package by it's name


Get all packages by type


Get all packages by name and type

$packagist->getPackagesByName('monolog', 'symfony-bundle')


Please see CHANGELOG for more information what has changed recently.


composer test


Please see CONTRIBUTING for details.


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


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.


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