PHPackages                             esi/librariesio - 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. esi/librariesio

ActiveLibrary[API Development](/categories/api)

esi/librariesio
===============

LibrariesIO - A simple API wrapper/client for the Libraries.io API.

v1.1.1(2y ago)31[1 issues](https://github.com/ericsizemore/librariesio/issues)[3 PRs](https://github.com/ericsizemore/librariesio/pulls)MITPHPPHP ^8.2 &lt;8.5CI passing

Since Dec 25Pushed 2w ago1 watchersCompare

[ Source](https://github.com/ericsizemore/librariesio)[ Packagist](https://packagist.org/packages/esi/librariesio)[ GitHub Sponsors](https://github.com/ericsizemore)[ Fund](https://ko-fi.com/ericsizemore)[ RSS](/packages/esi-librariesio/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (8)Versions (11)Used By (0)

LibrariesIO - A simple API wrapper/client for the Libraries.io API.
===================================================================

[](#librariesio---a-simple-api-wrapperclient-for-the-librariesio-api)

[![Build Status](https://camo.githubusercontent.com/79786fa8bc49673b55c57040f93032621be3c7525dee13a6d862e01307f24746/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6572696373697a656d6f72652f6c6962726172696573696f2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ericsizemore/librariesio/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/f2204dcdd6b727c0002ebf7315e2ec88ac20b7d722cafa1f6445e9764de111ac/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6572696373697a656d6f72652f6c6962726172696573696f2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ericsizemore/librariesio/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/26f69f645ab4b63fdf45860a105ec734985bd669ed17c4702c9de1c795e7c319/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6572696373697a656d6f72652f6c6962726172696573696f2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ericsizemore/librariesio/?branch=master)[![Continuous Integration](https://github.com/ericsizemore/librariesio/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/ericsizemore/librariesio/actions/workflows/continuous-integration.yml)[![Type Coverage](https://camo.githubusercontent.com/6a5cc22395b00a5e3fc9cf463c4b07a3eb6876871a517e4f8b4a23e89e0dbcc1/68747470733a2f2f73686570686572642e6465762f6769746875622f6572696373697a656d6f72652f6c6962726172696573696f2f636f7665726167652e737667)](https://shepherd.dev/github/ericsizemore/librariesio)[![Psalm Level](https://camo.githubusercontent.com/9c1b2cbdb43e84a86fc1fa820cfbed31c5981b9fdeef464f3771154a4d9f6448/68747470733a2f2f73686570686572642e6465762f6769746875622f6572696373697a656d6f72652f6c6962726172696573696f2f6c6576656c2e737667)](https://shepherd.dev/github/ericsizemore/librariesio)[![PHPMD](https://github.com/ericsizemore/librariesio/actions/workflows/phpmd.yml/badge.svg)](https://github.com/ericsizemore/librariesio/actions/workflows/phpmd.yml)[![Latest Stable Version](https://camo.githubusercontent.com/8efd067e703f0af6696a15e6cd9b6a575a692559b53f78c557728bbdd7199814/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6573692f6c6962726172696573696f2e737667)](https://packagist.org/packages/esi/librariesio)[![Downloads per Month](https://camo.githubusercontent.com/4f6fce497a9e11134161b6f1c85d9d806f6e3801907b24d409590e65e0066250/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6573692f6c6962726172696573696f2e737667)](https://packagist.org/packages/esi/librariesio)[![License](https://camo.githubusercontent.com/b430df9e5dbc9aeb30dc5043621871e3166d58895a2a0cb7f323e890ba2d8d35/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6573692f6c6962726172696573696f2e737667)](https://packagist.org/packages/esi/librariesio)

2.0.0 Important Note
--------------------

[](#200-important-note)

- The `master` branch is for development of the upcoming version 2.0.0.
    - This is a notable exception to the backward compatibility promise, as most of this work was done before it was implemented.
- Should be relatively stable, but would still advise against using in production.
- Function parameters, class api's, etc. may change during development.
- The [docs](docs) have not yet been fully updated with changes.

Important Note
--------------

[](#important-note)

This project was born from the desire to expand my knowledge of API's and GuzzleHttp. My implementation is far from perfect, so I am open to any and all feedback that one may wish to provide.

- The Libraries.io API has the ability for pagination, however it is not yet fully implemented in this library.

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

[](#installation)

### Composer

[](#composer)

Install the latest version with:

```
$ composer require esi/librariesio
```

Then, within your project (if not already included), include composer's autoload. For example:

```

```

For more information see the [installation](docs/installation.md) docs.

Basic Usage
-----------

[](#basic-usage)

LibrariesIO splits the different endpoints based on their "component":

- Esi\\LibrariesIO\\LibrariesIO::platform()
    - does not require an $endpoint, though you can pass 'platforms'.
- Esi\\LibrariesIO\\LibrariesIO::project()
    - takes an 'endpoint' parameter to specify which subset you are looking for.
        - Current endpoints are:
            - contributors
            - dependencies
            - dependents
            - dependent\_repositories
            - project
            - search
            - sourceRank
- Esi\\LibrariesIO\\LibrariesIO::repository()
    - takes an 'endpoint' parameter to specify which subset you are looking for.
        - Current endpoints are:
            - dependencies
            - projects
            - repository
- Esi\\LibrariesIO\\LibrariesIO::user()
    - takes an 'endpoint' parameter to specify which subset you are looking for.
        - Current endpoints are:
            - dependencies
            - packages
            - package\_contributions
            - repositories
            - repository\_contributions
            - subscriptions
            - user
- Esi\\LibrariesIO\\LibrariesIO::subscription()
    - takes an 'endpoint' parameter to specify which subset you are looking for.
        - Current endpoints are:
            - subscribe
            - check
            - update
            - unsubscribe

Each 'subset' has their own required options. Check the documentation (currently WIP) for more information.

As an example, let's say you want to get a list of the available platforms. To do so:

```

```

For more information see the [basic usage](docs/basic-usage.md) docs.

Documentation
-------------

[](#documentation)

The `docs/` folder or online [here](https://www.secondversion.com/docs/librariesio/).

About
-----

[](#about)

### Requirements

[](#requirements)

- LibrariesIO works with PHP 8.2.0 or above.
- All API requests include an api\_key parameter. You will need to get your api key from your [account](https://libraries.io/account) page at libraries.io.

### Credits

[](#credits)

- [Eric Sizemore](https://github.com/ericsizemore)
- [All Contributors](https://github.com/ericsizemore/librariesio/contributors)

### Contributing

[](#contributing)

See [CONTRIBUTING](./CONTRIBUTING.md).

Bugs and feature requests are tracked on [GitHub](https://github.com/ericsizemore/librariesio/issues).

### Contributor Covenant Code of Conduct

[](#contributor-covenant-code-of-conduct)

See [CODE\_OF\_CONDUCT.md](./CODE_OF_CONDUCT.md)

### Backward Compatibility Promise

[](#backward-compatibility-promise)

See [backward-compatibility.md](./backward-compatibility.md) for more information on Backwards Compatibility.

### Changelog

[](#changelog)

See the [CHANGELOG](./CHANGELOG.md) for more information on what has changed recently.

### License

[](#license)

See the [LICENSE](./LICENSE.md) for more information on the license that applies to this project.

### Security

[](#security)

See [SECURITY](./SECURITY.md) for more information on the security disclosure process.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance56

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 56.2% 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 ~26 days

Total

4

Last Release

843d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/723810?v=4)[Eric Sizemore](/maintainers/ericsizemore)[@ericsizemore](https://github.com/ericsizemore)

---

Top Contributors

[![ericsizemore](https://avatars.githubusercontent.com/u/723810?v=4)](https://github.com/ericsizemore "ericsizemore (369 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (288 commits)")

---

Tags

apiapi-clientapi-wrapperlibrarieslibrariesioapiapi clientlibrariesApi Wrapperlibraries.io

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/esi-librariesio/health.svg)

```
[![Health](https://phpackages.com/badges/esi-librariesio/health.svg)](https://phpackages.com/packages/esi-librariesio)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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