shlinkio / shlink-php-sdk
A PHP SDK to consume Shlink's REST API
v3.2.0
2026-05-22 16:14 UTC
Requires
- php: ^8.4
- psr/http-client: ^1.0
- psr/http-factory: ^1.1
Requires (Dev)
- carthage-software/mago: ^1.28
- devster/ubench: ^2.1
- guzzlehttp/guzzle: ^7.10
- phpstan/phpstan: ^2.1
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpcov: ^12.0
- phpunit/phpunit: ^13.0
- shlinkio/shlink-mago-config: ^1.0
- symfony/var-dumper: ^8.0
README
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 and 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
Install the SDK with composer.
composer install shlinkio/shlink-php-sdk
Docs
Read the documentation at https://php-sdk.shlink.io