Skip to content

shlinkio/shlink-php-sdk

Repository files navigation

Shlink PHP SDK

Build Status Code Coverage Latest Stable Version License Paypal 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 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