bastianleicht / sub-services-php
A full-featured implementation of the Sub.Services API
dev-main
2021-11-05 18:46 UTC
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- phpunit/phpunit: ^9.5.0
This package is auto-updated.
Last update: 2024-11-04 20:04:53 UTC
README
This PHP 7.2+ library allows you to communicate with the Sub.Services API.
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.