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.3.0(3w ago)675.6k↓13%2[1 issues](https://github.com/shlinkio/shlink-php-sdk/issues)1MITPHPPHP ^8.4

Since Dec 4Pushed 3w 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 3d ago

READMEChangelog (10)Dependencies (32)Versions (19)Used By (1)

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

59

—

FairBetter than 98% of packages

Maintenance92

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community11

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

Recently: every ~55 days

Total

18

Last Release

22d 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 (270 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

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60216.0M85](/packages/mollie-mollie-api-php)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.9M50](/packages/getbrevo-brevo-php)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M420](/packages/drupal-core-recommended)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

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