updaterbot/runcloud-sdk
Composer 安装命令:
composer require updaterbot/runcloud-sdk
包简介
RunCloud PHP SDK (Unofficial)
README 文档
README
This SDK helps you make API calls to the RunCloud Version 2 API and is a fork of the RunCloud PHP SDK.
Installation
Install the SDK in your project using Composer:
composer require updaterbot/runcloud-sdk
Use Composer's autoload:
require __DIR__ . '/../vendor/autoload.php';
Create an instance of the SDK:
$runcloud = new OnHover\RunCloud\RunCloud('MY_API_KEY', 'MY_API_SECRET');
Usage
You can use the $runcloud instance to make all available API calls.
To find out all available methods, inspect the appropriate classes in the Actions
directory. The names of these classes and functions closely follow the
RunCloud API Documentation.
Examples
$response = $runcloud->ping();
This tests the connection to the API and should return the string "pong".
$servers = $runcloud->servers();
This will return an array of servers you have access to. Each array item will be
an instance of OnHover\RunCloud\Resources\Server and contains various properties
such as id, name, provider and ipAddress.
You can return a single Server instance like this:
$serverId = 12345; $server = $runcloud->server($serverId);
Some methods require parameters to be supplied as an array.
$serverId = 12345; $data = [ 'type' => 'global', 'port' => '8080-8081', 'protocol' => 'tcp', ]; $rule = $runcloud->createFirewallRule($serverId, $data);
Security
If you discover any security related issues, please email code@onhover.co.uk instead of using the issue tracker.
Credits
This package uses code from and is greatly inspired by the Forge SDK package by Mohammed Said and the Oh Dear PHP SDK package.
License
The MIT License (MIT). Please see License File for more information.
updaterbot/runcloud-sdk 适用场景与选型建议
updaterbot/runcloud-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 32 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 04 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「sdk」 「runcloud」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 updaterbot/runcloud-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 updaterbot/runcloud-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 updaterbot/runcloud-sdk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
A unified hosting provider abstraction layer for Laravel, providing a single API to manage servers, sites, databases, SSL certificates, and deployments across multiple hosting platforms.
RunCloud PHP SDK (Unofficial)
A lightweight plain-PHP framework for database-backed CRUD APIs.
Modern, strongly-typed, PSR-compliant PHP client for the WeFact v2 API.
PHP SDK for the Enconvert file conversion API
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 16
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-27