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.
Install the SDK with composer.
composer install shlinkio/shlink-php-sdk
Read the documentation at https://php-sdk.shlink.io