carmelosantana/coqui-toolkit-hostinger 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

carmelosantana/coqui-toolkit-hostinger

Composer 安装命令:

composer require 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.

README 文档

README

Comprehensive Hostinger VPS management toolkit for 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

Installation

composer require coquibot/coqui-toolkit-hostinger

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

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.

Tools

Tool Actions Description
hostinger_vps list, get, start, stop, restart, recreate, setup, set_hostname, set_password Virtual machine lifecycle management
hostinger_firewall list, get, create, delete, activate, deactivate, sync, list_rules, create_rule, update_rule, delete_rule Firewall and firewall rule management
hostinger_ssh list, create, delete, attach, detach SSH public key management
hostinger_backup list_backups, restore_backup, create_snapshot, get_snapshot, restore_snapshot, delete_snapshot Backup and snapshot management
hostinger_recovery start, stop VPS recovery mode (rescue disk)
hostinger_dns create_ptr, delete_ptr Reverse DNS (PTR) records
hostinger_template list_templates, list_data_centers OS templates and data center listing
hostinger_script list, get, create, update, delete Post-install script management
hostinger_actions list VM action history (audit log)

Gated Operations

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

Tool Gated 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 delete

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

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

# Install dependencies
composer install

# Run tests
composer test

# Static analysis
composer analyse

License

MIT

carmelosantana/coqui-toolkit-hostinger 适用场景与选型建议

carmelosantana/coqui-toolkit-hostinger 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 08 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「vps」 「toolkit」 「firewall」 「server」 「hosting」 「hostinger」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 carmelosantana/coqui-toolkit-hostinger 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 carmelosantana/coqui-toolkit-hostinger 我们能提供哪些服务?
定制开发 / 二次开发

基于 carmelosantana/coqui-toolkit-hostinger 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 45
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-08