PHPackages                             knplabs/packagist-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. knplabs/packagist-api

ActiveLibrary[API Development](/categories/api)

knplabs/packagist-api
=====================

Packagist API client.

v2.1.4(12mo ago)1821.3M↑12.8%45[3 issues](https://github.com/KnpLabs/packagist-api/issues)[1 PRs](https://github.com/KnpLabs/packagist-api/pulls)20MITPHPPHP ^7.4 || ^8.0CI passing

Since Aug 30Pushed 11mo ago23 watchersCompare

[ Source](https://github.com/KnpLabs/packagist-api)[ Packagist](https://packagist.org/packages/knplabs/packagist-api)[ Docs](http://knplabs.com)[ RSS](/packages/knplabs-packagist-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (28)Used By (20)

Packagist API
=============

[](#packagist-api)

[![Build status](https://github.com/KnpLabs/packagist-api/actions/workflows/test.yml/badge.svg)](https://github.com/KnpLabs/packagist-api/actions/workflows/test.yml/badge.svg) [![Latest Stable Version](https://camo.githubusercontent.com/0445bfbc7198282413d8662bc23239e9e845df9d8494c0f404a01f91f8f00992/68747470733a2f2f706f7365722e707567782e6f72672f4b6e704c6162732f7061636b61676973742d6170692f762f737461626c652e706e67)](https://packagist.org/packages/KnpLabs/packagist-api) [![Total Downloads](https://camo.githubusercontent.com/9d54e70036929b7f2ef2578b2093465e0ab2b1b5f6adc319f7ea8fafdaf41f6f/68747470733a2f2f706f7365722e707567782e6f72672f4b6e704c6162732f7061636b61676973742d6170692f646f776e6c6f6164732e706e67)](https://packagist.org/packages/KnpLabs/packagist-api)

Simple object oriented wrapper for Packagist API.

Requirements
------------

[](#requirements)

- PHP ^7.4 or ^8.0 (for PHP 7.1-7.3 please use the 1.x release line)

Installation
------------

[](#installation)

The recommended way to install Packagist API is through composer:

```
composer require knplabs/packagist-api
```

Usage
-----

[](#usage)

#### Search for packages:

[](#search-for-packages)

```
