shlinkio / shlink-php-sdk
A PHP SDK to consume Shlink's REST API
Installs: 29 799
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 3
Open Issues: 1
Requires
- php: ^8.2
- psr/http-client: ^1.0
- psr/http-factory: ^1.1
Requires (Dev)
- devster/ubench: ^2.1
- guzzlehttp/guzzle: ^7.9
- phpstan/phpstan: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpcov: ^10.0
- phpunit/phpunit: ^11.4
- roave/security-advisories: dev-master
- shlinkio/php-coding-standard: ~2.4.0
- symfony/var-dumper: ^7.1
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