PHPackages                             carmelosantana/coqui-toolkit-hostinger - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. carmelosantana/coqui-toolkit-hostinger

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

carmelosantana/coqui-toolkit-hostinger
======================================

Hostinger VPS management toolkit for Coqui — virtual machines, firewalls, SSH keys, backups, snapshots, recovery, DNS PTR records, OS templates, and post-install scripts via the Hostinger REST API v1.

v0.1.0(1mo ago)00MITPHPPHP ^8.4CI passing

Since Apr 9Pushed 1mo agoCompare

[ Source](https://github.com/carmelosantana/coqui-hostinger)[ Packagist](https://packagist.org/packages/carmelosantana/coqui-toolkit-hostinger)[ RSS](/packages/carmelosantana-coqui-toolkit-hostinger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Hostinger VPS Toolkit for Coqui
===============================

[](#hostinger-vps-toolkit-for-coqui)

Comprehensive Hostinger VPS management toolkit for [Coqui](https://github.com/carmelosantana/coqui). Provides 9 tools covering the full Hostinger VPS REST API v1 — virtual machines, firewalls, SSH keys, backups, snapshots, recovery mode, DNS PTR records, OS templates, and post-install scripts.

Requirements
------------

[](#requirements)

- PHP 8.4+
- [Coqui](https://github.com/carmelosantana/coqui) with `carmelosantana/php-agents` ^0.7
- A [Hostinger API token](https://developers.hostinger.com)

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

[](#installation)

```
composer require coquibot/coqui-toolkit-hostinger
```

Coqui auto-discovers the toolkit on next boot. No code changes needed.

Credential Setup
----------------

[](#credential-setup)

On first use, any tool call will prompt you to set the API token:

```
credentials(action: "set", key: "HOSTINGER_API_TOKEN", value: "your-token-here")

```

Generate a token at [developers.hostinger.com](https://developers.hostinger.com).

Tools
-----

[](#tools)

ToolActionsDescription`hostinger_vps`list, get, start, stop, restart, recreate, setup, set\_hostname, set\_passwordVirtual machine lifecycle management`hostinger_firewall`list, get, create, delete, activate, deactivate, sync, list\_rules, create\_rule, update\_rule, delete\_ruleFirewall and firewall rule management`hostinger_ssh`list, create, delete, attach, detachSSH public key management`hostinger_backup`list\_backups, restore\_backup, create\_snapshot, get\_snapshot, restore\_snapshot, delete\_snapshotBackup and snapshot management`hostinger_recovery`start, stopVPS recovery mode (rescue disk)`hostinger_dns`create\_ptr, delete\_ptrReverse DNS (PTR) records`hostinger_template`list\_templates, list\_data\_centersOS templates and data center listing`hostinger_script`list, get, create, update, deletePost-install script management`hostinger_actions`listVM action history (audit log)Gated Operations
----------------

[](#gated-operations)

Destructive operations require user confirmation (bypassed with `--auto-approve`):

ToolGated Actions`hostinger_vps`recreate, setup, set\_password`hostinger_firewall`delete, deactivate, delete\_rule`hostinger_ssh`delete, detach`hostinger_backup`restore\_backup, restore\_snapshot, delete\_snapshot`hostinger_recovery`start, stop`hostinger_script`deleteUsage Examples
--------------

[](#usage-examples)

**List all VPS instances:**

```
hostinger_vps(action: "list")

```

**Provision a new VPS:**

```
hostinger_template(action: "list_templates")
hostinger_vps(action: "setup", vm_id: 123, template_id: 456, password: "SecurePass!", hostname: "web-01.example.com")

```

**Secure with a firewall:**

```
hostinger_firewall(action: "create", name: "web-fw")
hostinger_firewall(action: "create_rule", firewall_id: 10, protocol: "TCP", port: "22", source: "YOUR_IP/32", source_type: "ip")
hostinger_firewall(action: "create_rule", firewall_id: 10, protocol: "TCP", port: "443", source_type: "anywhere")
hostinger_firewall(action: "activate", firewall_id: 10, vm_id: 123)

```

**SSH key deployment:**

```
hostinger_ssh(action: "create", name: "deploy-key", public_key: "ssh-rsa AAAA...")
hostinger_ssh(action: "attach", key_id: 5, vm_id: 123)

```

**Snapshot before maintenance:**

```
hostinger_backup(action: "create_snapshot", vm_id: 123)
hostinger_backup(action: "restore_snapshot", vm_id: 123, snapshot_id: 789)

```

Architecture
------------

[](#architecture)

```
src/
├── HostingerToolkit.php          # ToolkitInterface — registers all 9 tools
├── Runtime/
│   ├── HostingerClient.php       # Thin HTTP wrapper for the Hostinger API
│   └── HostingerResult.php       # Typed value object for API responses
└── Tool/
    ├── ActionTool.php            # hostinger_actions
    ├── BackupTool.php            # hostinger_backup
    ├── DnsTool.php               # hostinger_dns
    ├── FirewallTool.php          # hostinger_firewall
    ├── RecoveryTool.php          # hostinger_recovery
    ├── ScriptTool.php            # hostinger_script
    ├── SshKeyTool.php            # hostinger_ssh
    ├── TemplateTool.php          # hostinger_template
    └── VpsTool.php               # hostinger_vps

```

Development
-----------

[](#development)

```
# Install dependencies
composer install

# Run tests
composer test

# Static analysis
composer analyse
```

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance93

Actively maintained with recent releases

Popularity0

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

34d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/597820?v=4)[Carmelo Santana](/maintainers/carmelosantana)[@carmelosantana](https://github.com/carmelosantana)

---

Top Contributors

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

---

Tags

servervpsfirewalltoolkitphp-agentscoquihostingerhosting

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/carmelosantana-coqui-toolkit-hostinger/health.svg)

```
[![Health](https://phpackages.com/badges/carmelosantana-coqui-toolkit-hostinger/health.svg)](https://phpackages.com/packages/carmelosantana-coqui-toolkit-hostinger)
```

PHPackages © 2026

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