bastianleicht/sub-services-php

A full-featured implementation of the Sub.Services API

dev-main 2021-11-05 18:46 UTC

This package is auto-updated.

Last update: 2024-05-04 19:03:11 UTC


README

This PHP 7.2+ library allows you to communicate with the Sub.Services API.

Latest Stable Version Total Downloads Latest Unstable Version License

You can find the full API documentation here!

Getting Started

Recommended installation is using Composer!

In the root of your project execute the following:

$ composer require bastianleicht/sub-services-php

Or add this to your composer.json file:

{
    "require": {
        "bastianleicht/sub-services-php": "^1.0"
    }
}

Then perform the installation:

$ composer install --no-dev

Examples

Creating the SubServices main object:

<?php
// Require the autoloader
require_once 'vendor/autoload.php';

// Use the library namespace
use SubServices\SubServices;

// Then simply pass your API-Token when creating the API client object.
$client = new SubServices('API-Token');

// Then you are able to perform a request
var_dump($client->instance()->show(9999));
?>

If you want more info on how to use this PHP-API you should check out the Wiki.