shlinkio / shlink-php-sdk
A PHP SDK to consume Shlink's REST API
Installs: 28 124
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.0
Requires (Dev)
- devster/ubench: ^2.1
- guzzlehttp/guzzle: ^7.8
- phpstan/phpstan: ^1.10
- phpstan/phpstan-phpunit: ^1.3
- phpunit/phpcov: ^10.0
- phpunit/phpunit: ^11.3
- roave/security-advisories: dev-master
- shlinkio/php-coding-standard: ~2.3.0
- symfony/var-dumper: ^7.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