PHPackages                             zzhenping/runpod-client - 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. [API Development](/categories/api)
4. /
5. zzhenping/runpod-client

ActiveLibrary[API Development](/categories/api)

zzhenping/runpod-client
=======================

A Hyperf component that provides a convenient client for interacting with the RunPod API. This package simplifies serverless GPU workload management, allowing easy deployment and execution of AI/ML tasks on RunPod's cloud infrastructure.

v2(1y ago)082MITPHPPHP &gt;=8.1CI failing

Since May 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Zzhenping/runpod-client)[ Packagist](https://packagist.org/packages/zzhenping/runpod-client)[ RSS](/packages/zzhenping-runpod-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

RunPod Client for Hyperf
========================

[](#runpod-client-for-hyperf)

这是一个用于调用 [RunPod API](https://www.runpod.io/) 的 Hyperf 组件，支持常用 Serverless 接口，如异步作业提交、状态查询、取消任务等。

---

✨ 功能特性
------

[](#-功能特性)

- `run`：异步提交作业并返回作业 ID
- `runsync`：同步执行作业并直接返回结果
- `status`：查询作业状态及输出
- `stream`：读取流式增量结果
- `cancel`：取消进行中的作业
- `retry`：重试失败或超时的作业
- `purge-queue`：清空队列中的作业
- `health`：检查运行状态

---

📦 安装
----

[](#-安装)

```
composer require zzhenping/runpod-client
```

🔧 快速生成配置文件
----------

[](#-快速生成配置文件)

```
php bin/hyperf.php vendor:publish zzhenping/runpod-client
```

🧩 使用示例
------

[](#-使用示例)

```
use Zzhenping\RunPodClient\Serverless\ServerlessService;

class IndexController extends AbstractController
{

    public function __construct(protected ServerlessService $runpod){}

    public function index()
    {
        return [
            'health' => $this->runpod->health('bcb5un8ejvlce7'),
            'new_health' => $this->runpod->withPool('new_run_pod')->health('m9d0vbz7fzbjum'), // 新的连接
        ];
    }
}

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance49

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

372d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/343cfda94cd628f4cb309b1a74e7147b1ece56078226f348210665de91ef8a11?d=identicon)[Zzhenping](/maintainers/Zzhenping)

---

Top Contributors

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

---

Tags

phphyperfrunpod

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zzhenping-runpod-client/health.svg)

```
[![Health](https://phpackages.com/badges/zzhenping-runpod-client/health.svg)](https://phpackages.com/packages/zzhenping-runpod-client)
```

###  Alternatives

[hyperf/swagger

A swagger library for Hyperf.

19338.7k6](/packages/hyperf-swagger)[hyperf/jet

Jet is a unification model RPC Client, built-in JSON RPC protocol, available to running in ALL PHP environments, including PHP-FPM and Swoole/Hyperf environments.

6119.1k](/packages/hyperf-jet)[limingxinleo/feishu

飞书SDK

2712.4k](/packages/limingxinleo-feishu)[kakuilan/hyperf-apihelper

hyperf api swagger helper

443.0k](/packages/kakuilan-hyperf-apihelper)[naixiaoxin/hyperf-wechat

Wechat SDK For Hyperf

151.8k](/packages/naixiaoxin-hyperf-wechat)

PHPackages © 2026

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