PHPackages                             volcengine/volc-sdk-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. volcengine/volc-sdk-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

volcengine/volc-sdk-php
=======================

Volcengine SDK for PHP

v1.0.166(1mo ago)35113.0k↓13.9%8[3 PRs](https://github.com/volcengine/volc-sdk-php/pulls)4Apache-2.0PHPPHP &gt;=7.0

Since Jan 19Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/volcengine/volc-sdk-php)[ Packagist](https://packagist.org/packages/volcengine/volc-sdk-php)[ RSS](/packages/volcengine-volc-sdk-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (159)Used By (4)

中文 | [English](README.EN.MD)

[![](https://camo.githubusercontent.com/54620746ee9e22bfead46f5be1de0c9eb531378acee44c9f840f7e49fcc75703/68747470733a2f2f69616d2e766f6c6363646e2e636f6d2f6f626a2f766f6c63656e67696e652d7075626c69632f7069632f766f6c63656e67696e652d69636f6e2e706e67)](https://camo.githubusercontent.com/54620746ee9e22bfead46f5be1de0c9eb531378acee44c9f840f7e49fcc75703/68747470733a2f2f69616d2e766f6c6363646e2e636f6d2f6f626a2f766f6c63656e67696e652d7075626c69632f7069632f766f6c63656e67696e652d69636f6e2e706e67)
=====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#)

火山引擎SDK for PHP
===============

[](#火山引擎sdk-for-php)

 欢迎使用火山引擎SDK for PHP，本文档为您介绍如何获取及调用SDK。 前置准备
----

[](#前置准备)

### 服务开通

[](#服务开通)

请确保您已开通了您需要访问的服务。您可前往[火山引擎控制台](https://console.volcengine.com/)，在左侧菜单中选择或在顶部搜索栏中搜索您需要使用的服务，进入服务控制台内完成开通流程。

### 获取安全凭证

[](#获取安全凭证)

Access Key（访问密钥）是访问火山引擎服务的安全凭证，包含Access Key ID（简称为AK）和Secret Access Key（简称为SK）两部分。您可登录[火山引擎控制台](https://console.volcengine.com/)，前往“[访问控制](https://console.volcengine.com/iam)”的“[访问密钥](https://console.volcengine.com/iam/keymanage/)”中创建及管理您的Access Key。更多信息可参考[访问密钥帮助文档](https://www.volcengine.com/docs/6291/65568)。 ###环境检查 PHP版本需要不低于7.1。

获取与安装
-----

[](#获取与安装)

推荐使用composer安装火山引擎SDK for PHP：

```
$ composer require volcengine/volc-sdk-php
```

相关配置
----

[](#相关配置)

### 安全凭证配置

[](#安全凭证配置)

火山引擎SDK for PHP支持以下几种方式进行凭证管理：

*注意：代码中Your AK及Your SK需要分别替换为您的AK及SK。*

**方式一**：在Client中显式指定AK/SK **（推荐）**

```
$client = Iam::getInstance();
$client->setAccessKey(Your AK);
$client->setSecretKey(Your SK);
```

**方式二**：从环境变量加载AK/SK

```
VOLC_ACCESSKEY="Your AK"
VOLC_SECRETKEY="Your SK"
```

**方式三**：从HOME文件加载AK/SK

在本地的~/.volc/config中添加如下内容：

```
  {
    "ak": "Your AK",
    "sk": "Your SK"
  }
```

\##其它资源 示例参见[examples](./examples)

###  Health Score

59

—

FairBetter than 99% of packages

Maintenance88

Actively maintained with recent releases

Popularity45

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 60.3% 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

Every ~11 days

Recently: every ~31 days

Total

158

Last Release

59d ago

PHP version history (2 changes)v1.0.3PHP &gt;=7.1

v1.0.26PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

[![guozhifeng-felton](https://avatars.githubusercontent.com/u/118705516?v=4)](https://github.com/guozhifeng-felton "guozhifeng-felton (176 commits)")[![zzzTest-qa](https://avatars.githubusercontent.com/u/226318548?v=4)](https://github.com/zzzTest-qa "zzzTest-qa (51 commits)")[![liuweiwei-xyz](https://avatars.githubusercontent.com/u/140073808?v=4)](https://github.com/liuweiwei-xyz "liuweiwei-xyz (25 commits)")[![lianhongrui](https://avatars.githubusercontent.com/u/87923743?v=4)](https://github.com/lianhongrui "lianhongrui (20 commits)")[![huangxinmaigo](https://avatars.githubusercontent.com/u/232538578?v=4)](https://github.com/huangxinmaigo "huangxinmaigo (8 commits)")[![KArtorias](https://avatars.githubusercontent.com/u/23132526?v=4)](https://github.com/KArtorias "KArtorias (7 commits)")[![FangZhi95](https://avatars.githubusercontent.com/u/101500903?v=4)](https://github.com/FangZhi95 "FangZhi95 (2 commits)")[![yinxing0818](https://avatars.githubusercontent.com/u/152942002?v=4)](https://github.com/yinxing0818 "yinxing0818 (2 commits)")[![huangxing-hx](https://avatars.githubusercontent.com/u/73290827?v=4)](https://github.com/huangxing-hx "huangxing-hx (1 commits)")

---

Tags

phpsdkvolcengine

### Embed Badge

![Health badge](/badges/volcengine-volc-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/volcengine-volc-sdk-php/health.svg)](https://phpackages.com/packages/volcengine-volc-sdk-php)
```

PHPackages © 2026

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