vexura / openprovider-sdk-client
A full-featured implementation of the openprovider API
dev-main
2024-07-02 22:57 UTC
Requires
- php: >=7.2
- ext-json: *
- guzzlehttp/guzzle: ^7.8.1
Requires (Dev)
- phpunit/phpunit: ^9.5.0
This package is auto-updated.
Last update: 2024-12-02 23:58:35 UTC
README
This PHP 7.0+ library allows you to communicate with the OpenProvider API.
Getting Started
Recommended installation is using Composer!
In the root of your project execute the following:
$ composer require vexura/openprovider-sdk-client
Or add this to your composer.json
file:
{ "require": { "vexura/openprovider-sdk-client": "^1.0" } }
Then perform the installation:
$ composer install --no-dev
Examples
Get Domain Pricelist
<?php // Require the autoloader require_once 'vendor/autoload.php'; // Use the library namespace use Vexura/OpenProvider; // Then simply pass your OpenProvider-Token when creating the OpenProvider client object. $client = new OpenProvider('username', 'password'); // Then you are able to perform a request var_dump($client->domain()->getPricelist()); ?>