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.1(1mo ago)5964[1 issues](https://github.com/danabrey/sleeper-api/issues)MITPHPPHP ^8.1CI failing

Since Jun 30Pushed 1mo 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 today

READMEChangelog (10)Dependencies (8)Versions (17)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

51

—

FairBetter than 95% of packages

Maintenance88

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity73

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

Recently: every ~393 days

Total

16

Last Release

40d 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://avatars.githubusercontent.com/u/10567440?v=4)[Dan Abrey](/maintainers/danabrey)[@danabrey](https://github.com/danabrey)

---

Top Contributors

[![danabrey](https://avatars.githubusercontent.com/u/10567440?v=4)](https://github.com/danabrey "danabrey (19 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

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[sylius/sylius

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

8.5k5.9M738](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/packages/web-auth-webauthn-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)

PHPackages © 2026

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