PHPackages                             jleagle/packagist-api-client - 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. jleagle/packagist-api-client

ActiveLibrary[API Development](/categories/api)

jleagle/packagist-api-client
============================

A small helper class to request package details from the Packagist API

1.1.0(4y ago)11.4k1MITPHPPHP &gt;=5.4.0

Since Feb 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Jleagle/packagist-api-client)[ Packagist](https://packagist.org/packages/jleagle/packagist-api-client)[ RSS](/packages/jleagle-packagist-api-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Packagist API Client
====================

[](#packagist-api-client)

A small helper class to request package details from the Packagist API

#### Get a list of every package

[](#get-a-list-of-every-package)

```
$packagist = new Packagist();
$packages = $packagist->all();
```

This can return a lot of results and can be filtered like so:

```
$packagist = new Packagist();
$zend_packages = $packagist->all('*zend*');
```

This field supports multiple wildcards and character classes.

#### Search for a package

[](#search-for-a-package)

This will return the same paginated search results as on the Packagist website:

```
$packagist = new Packagist();
$zend_packages = $packagist->search('zend');
```

You can also filter the results by supplying an array of tags:

```
$packagist = new Packagist();
$zend_packages = $packagist->search('zend', ['zf2']);
```

The third parameter is the page number.

#### Get a packages details

[](#get-a-packages-details)

```
$packagist = new Packagist();
$package = $packagist->package('jleagle', 'packagist-api-client');
```

#### Get the latest packages added

[](#get-the-latest-packages-added)

```
$packagist = new Packagist();
$package = $packagist->latestAdded();
```

#### Get the latest package releases

[](#get-the-latest-package-releases)

```
$packagist = new Packagist();
$package = $packagist->latestReleased();
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~651 days

Total

5

Last Release

1504d ago

Major Versions

0.1.1 → 1.0.02015-11-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd99212f53bfaee15e1c86440dacfc96d4f3d61a5a0101f3a48c1e87c51bee51?d=identicon)[Jleagle](/maintainers/Jleagle)

---

Top Contributors

[![Jleagle](https://avatars.githubusercontent.com/u/381099?v=4)](https://github.com/Jleagle "Jleagle (21 commits)")

---

Tags

apiclienthelperpackagist

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jleagle-packagist-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/jleagle-packagist-api-client/health.svg)](https://phpackages.com/packages/jleagle-packagist-api-client)
```

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
