Download the PHP package vhosting/tools-sdk without Composer
On this page you can find all versions of the php package vhosting/tools-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vhosting/tools-sdk
More information about vhosting/tools-sdk
Files in vhosting/tools-sdk
Package tools-sdk
Short Description Tools API SDK
License MIT
Homepage https://github.com/vhosting/tools-sdk
Informations about the package tools-sdk
Tools API SDK
The PHP SDK for interacting with the VHosting Tools API, developed using the Saloon library.
Installation
You can install the package via composer:
The package automatically registers itself in Laravel through the Service Provider.
Configuration
You can publish the configuration file with the following command:
These are the supported environment variables:
The token can be generated by visiting https://tools.vhosting-it.com/token.
Usage
The SDK provides a Laravel Facade that makes it easy to access resources.
Workflow Management
All workflow operations are accessible via ToolsSdk::workflow().
Retrieve all workflows (Paginated)
Retrieve a single workflow
Dispatch a new workflow
Retry a failed workflow
Mocking for Tests
The SDK integrates Saloon's faking system to facilitate testing:
It is also possible to enable mocks globally via the TOOLS_MOCK=true environment variable, which will use the default data defined in the Mocks class.
License
MIT License (MIT). For more information, please see the LICENSE file.
All versions of tools-sdk with dependencies
saloonphp/laravel-plugin Version ^4.0
saloonphp/pagination-plugin Version ^2.3.0