PHPackages                             shlinkio/shlink-php-sdk - 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. shlinkio/shlink-php-sdk

ActiveLibrary[API Development](/categories/api)

shlinkio/shlink-php-sdk
=======================

A PHP SDK to consume Shlink's REST API

v3.1.0(4mo ago)665.5k—5.8%3[1 issues](https://github.com/shlinkio/shlink-php-sdk/issues)MITPHPPHP ^8.4

Since Dec 4Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/shlinkio/shlink-php-sdk)[ Packagist](https://packagist.org/packages/shlinkio/shlink-php-sdk)[ RSS](/packages/shlinkio-shlink-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (17)Used By (0)

Shlink PHP SDK
==============

[](#shlink-php-sdk)

[![Build Status](https://camo.githubusercontent.com/b8c936c1138b45da736d16dd1c76cae1832b1a9bfd5600867ea22c3881d3e680/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73686c696e6b696f2f73686c696e6b2d7068702d73646b2f63692e796d6c3f6272616e63683d6d61696e266c6f676f3d676974687562267374796c653d666c61742d737175617265)](https://github.com/shlinkio/shlink-php-sdk/actions/workflows/ci.yml)[![Code Coverage](https://camo.githubusercontent.com/f4f8c25d82efb4784694c11e5a02dbcada39ffcc0c9bc4e748db98785624ab79/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f73686c696e6b696f2f73686c696e6b2d7068702d73646b2f6d61696e3f7374796c653d666c61742d737175617265)](https://app.codecov.io/gh/shlinkio/shlink-php-sdk)[![Latest Stable Version](https://camo.githubusercontent.com/2ca8b7c13b5f4f0adccf6481ade3bdcfb2ae228f286324ce309e9d0e206bc629/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f73686c696e6b696f2f73686c696e6b2d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shlinkio/shlink-php-sdk)[![License](https://camo.githubusercontent.com/0aa0e4d72fd070bb8ebdd73305e290531f8e56d849a27c57549c1ac222c1b595/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73686c696e6b696f2f73686c696e6b2d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://github.com/shlinkio/shlink-php-sdk/blob/main/LICENSE)[![Paypal donate](https://camo.githubusercontent.com/f7bd7ab1d7bea7a4ac78f5189c56ce2dbf8cc73608863e0dd9408e10ddca4673/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d70617970616c2d626c75652e7376673f7374796c653d666c61742d737175617265266c6f676f3d70617970616c26636f6c6f72413d616161616161)](https://slnk.to/donate)

A PHP SDK to consume Shlink's REST API in a very convenient and robust way.

- Very expressive API.
- Decoupled from implementations: Depending only on [PSR-17](https://www.php-fig.org/psr/psr-17/) and [PSR-18](https://www.php-fig.org/psr/psr-18/) interfaces.
- Dependency injection: Every service can be composed out of a set of pieces.
- Statically typed and immutable DTOs, with meaningful named constructors.
- Generator-based iterable collections, to abstract pagination and reduce resource consumption.
- Error handling via contextual exceptions.
- Extensively tested with unit tests and integration tests.

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

[](#installation)

Install the SDK with composer.

```
composer install shlinkio/shlink-php-sdk

```

Docs
----

[](#docs)

Read the documentation at

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance76

Regular maintenance activity

Popularity37

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity76

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

Total

16

Last Release

127d ago

Major Versions

v0.2.0 → v1.0.02022-10-01

v1.4.0 → v2.0.02024-03-11

v2.5.0 → v3.0.02025-11-02

PHP version history (5 changes)v0.1.0PHP ^8.0

v1.0.0PHP ^8.1

v1.4.0PHP ^8.2

v2.5.0PHP ^8.3

v3.1.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/73480af83259e096d154a8c4333e550c186b28ccb7a0d11f537b9aa57ad35392?d=identicon)[acelaya](/maintainers/acelaya)

---

Top Contributors

[![acelaya](https://avatars.githubusercontent.com/u/2719332?v=4)](https://github.com/acelaya "acelaya (263 commits)")

---

Tags

hacktoberfestsdk

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/shlinkio-shlink-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/shlinkio-shlink-php-sdk/health.svg)](https://phpackages.com/packages/shlinkio-shlink-php-sdk)
```

###  Alternatives

[kbsali/redmine-api

Redmine API client

4221.1M24](/packages/kbsali-redmine-api)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)[swisnl/json-api-client

A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.

211473.2k12](/packages/swisnl-json-api-client)[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)[prokerala/astrology-sdk

Prokerala.com Astrology API Client Library for PHP.

2610.0k](/packages/prokerala-astrology-sdk)[luzrain/telegram-bot-api

PHP Wrapper for Telegram Bot API

1032.8k1](/packages/luzrain-telegram-bot-api)

PHPackages © 2026

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