PHPackages                             danabrey/sleeper-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. danabrey/sleeper-api

ActiveLibrary[API Development](/categories/api)

danabrey/sleeper-api
====================

PHP library for interacting with the sleeper.app fantasy football API

v1.0(2mo ago)5927[1 issues](https://github.com/danabrey/sleeper-api/issues)MITPHPPHP ^8.1CI failing

Since Jun 30Pushed 2mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (16)Used By (0)

Sleeper API
===========

[](#sleeper-api)

PHP library for interacting with the read-only [Sleeper fantasy football API](https://docs.sleeper.app/).

[![PHP Composer](https://github.com/danabrey/sleeper-api/workflows/PHP%20Composer/badge.svg)](https://github.com/danabrey/sleeper-api/workflows/PHP%20Composer/badge.svg)

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

[](#installation)

`composer require danabrey/sleeper-api`

Usage
-----

[](#usage)

Create an instance of the client

`$client = new DanAbrey\SleeperApi\SleeperApiClient();`

No API key is required for the Sleeper API, as it is read-only and they do not track requests in this way.

`$client->league('xxxxx')` where xxxxx is the league ID, for basic league info `$client->rosters('xxxxx')` where xxxxx is the league ID, for all rosters `$client->users('xxxxx')` where xxxxx is the league ID, for all users in a league

All methods return either a single instance or an array of plain PHP objects that represent the data returned. e.g. `SleeperRoster`

Note
----

[](#note)

It is your responsibility to abide by the [terms of the Sleeper API](https://docs.sleeper.app/).

### Running tests

[](#running-tests)

`./vendor/bin/phpunit`

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance80

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity72

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 ~147 days

Recently: every ~371 days

Total

15

Last Release

82d ago

Major Versions

v0.7 → v1.02026-02-25

PHP version history (3 changes)v0.1PHP ^7.4

v0.5PHP ^7.4|^8.0

v1.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/08ae8b4496ef1041a89cef3664d40778641b613985eaf273902aeebea0a317ed?d=identicon)[danabrey](/maintainers/danabrey)

---

Top Contributors

[![danabrey](https://avatars.githubusercontent.com/u/10567440?v=4)](https://github.com/danabrey "danabrey (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/danabrey-sleeper-api/health.svg)

```
[![Health](https://phpackages.com/badges/danabrey-sleeper-api/health.svg)](https://phpackages.com/packages/danabrey-sleeper-api)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[fschmtt/keycloak-rest-api-client-php

PHP client to interact with Keycloak's Admin REST API.

4684.7k2](/packages/fschmtt-keycloak-rest-api-client-php)

PHPackages © 2026

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