PHPackages                             vhosting/tools-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. vhosting/tools-sdk

ActiveLibrary

vhosting/tools-sdk
==================

Tools API SDK

0.1.1(2mo ago)01MITPHPPHP ^8.4

Since Mar 11Pushed 1mo agoCompare

[ Source](https://github.com/vhosting/tools-sdk)[ Packagist](https://packagist.org/packages/vhosting/tools-sdk)[ Docs](https://github.com/vhosting/tools-sdk)[ RSS](/packages/vhosting-tools-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (2)Used By (0)

Tools API SDK
=============

[](#tools-api-sdk)

The PHP SDK for interacting with the VHosting Tools API, developed using the [Saloon](https://saloon.dev/) library.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require vhosting/tools-sdk
```

The package automatically registers itself in Laravel through the Service Provider.

Configuration
-------------

[](#configuration)

You can publish the configuration file with the following command:

```
php artisan vendor:publish --provider="VHosting\ToolsSdk\ToolsSdkServiceProvider"
```

These are the supported environment variables:

```
TOOLS_TOKEN=your-api-token
TOOLS_URL=https://tools.vhosting-it.com
TOOLS_MOCK=false
```

The token can be generated by visiting .

Usage
-----

[](#usage)

The SDK provides a Laravel Facade that makes it easy to access resources.

### Workflow Management

[](#workflow-management)

All workflow operations are accessible via `ToolsSdk::workflow()`.

#### Retrieve all workflows (Paginated)

[](#retrieve-all-workflows-paginated)

```
use VHosting\ToolsSdk\Facades\ToolsSdk;

$paginator = ToolsSdk::workflow()->all();

foreach ($paginator as $workflow) {
    echo $workflow->id;
    echo $workflow->status;
}
```

#### Retrieve a single workflow

[](#retrieve-a-single-workflow)

```
$workflow = ToolsSdk::workflow()->get(123);

echo $workflow->description;
echo $workflow->tasks_count;
```

#### Dispatch a new workflow

[](#dispatch-a-new-workflow)

```
$workflow = ToolsSdk::workflow()->dispatch('workflow-type-name', [
    'parameter1' => 'value1',
    'parameter2' => 'value2',
]);

echo $workflow->id;
```

#### Retry a failed workflow

[](#retry-a-failed-workflow)

```
ToolsSdk::workflow()->retry(123);
```

Mocking for Tests
-----------------

[](#mocking-for-tests)

The SDK integrates Saloon's faking system to facilitate testing:

```
use VHosting\ToolsSdk\Facades\ToolsSdk;
use Saloon\Http\Faking\MockResponse;

ToolsSdk::fake([
    '*' => MockResponse::make(['id' => 1, 'status' => 'completed'], 200),
]);
```

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
-------

[](#license)

MIT License (MIT). For more information, please see the [LICENSE](LICENSE) file.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

60d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba98a3b5b1a03bc4c37de57b9d2aefbba31c73570e10df5833a50ad4106fc583?d=identicon)[Lukasss93](/maintainers/Lukasss93)

---

Top Contributors

[![Lukasss93](https://avatars.githubusercontent.com/u/4071613?v=4)](https://github.com/Lukasss93 "Lukasss93 (4 commits)")

### Embed Badge

![Health badge](/badges/vhosting-tools-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/vhosting-tools-sdk/health.svg)](https://phpackages.com/packages/vhosting-tools-sdk)
```

###  Alternatives

[ohdearapp/ohdear-php-sdk

An SDK to easily work with the Oh Dear API

742.6M13](/packages/ohdearapp-ohdear-php-sdk)[crescat-io/saloon-sdk-generator

Simplified SDK Scaffolding for Saloon

13130.9k7](/packages/crescat-io-saloon-sdk-generator)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[sandorian/moneybird-api-php

Moneybird API client for PHP

127.3k](/packages/sandorian-moneybird-api-php)[codebar-ag/laravel-zammad

Zammad integration with Laravel

106.1k](/packages/codebar-ag-laravel-zammad)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
