PHPackages                             huoban/api-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. [API Development](/categories/api)
4. /
5. huoban/api-sdk-php

ActiveLibrary[API Development](/categories/api)

huoban/api-sdk-php
==================

Huoban api SDK for PHP

v2.2.4(3y ago)8701MITPHPPHP &gt;=7.2

Since Sep 20Pushed 3y ago5 watchersCompare

[ Source](https://github.com/huobanteam/api-sdk-php)[ Packagist](https://packagist.org/packages/huoban/api-sdk-php)[ RSS](/packages/huoban-api-sdk-php/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (11)Used By (0)

Huoban api SDK for PHP
======================

[](#huoban-api-sdk-for-php)

概述
--

[](#概述)

Huoban api sdk for PHP是伙伴云表格为第三方开发者提供的php sdk包。开发者可以通过该sdk包进行简单的api调用请求。

运行环境
----

[](#运行环境)

- PHP 7.2+

安装方法
----

[](#安装方法)

1. 如果您通过composer管理您的项目依赖，可以在你的项目根目录运行：

    ```
     $ composer require huoban/api-sdk-php

    ```

    或者在你的`composer.json`中声明对Huoban api SDK for PHP的依赖：

    ```
     "require": {
         "huoban/api-sdk-php": "^2.0"
     }

    ```

    然后通过`composer install`安装依赖。composer安装完成后，在您的PHP代码中引入依赖即可：

    ```
     require_once __DIR__ . '/vendor/autoload.php';

    ```
2. 下载SDK源码，在您的代码中引入SDK目录下的`autoload.php`文件：

    ```
     require_once '/path/to/api-sdk-php/autoload.php';

    ```

快速使用
----

[](#快速使用)

### 常用类

[](#常用类)

类名解释Huoban\\HuobanHuoban工场类，用户通过Huoban工场创建相应操作实例### 可创建的实例

[](#可创建的实例)

类名解释table操作表格类，对应 Huoban\\Models\\HuobanTablebibi数据仓库类，对应 Huoban\\Models\\HuobanBibitablebi数据仓库表表格类，对应 Huoban\\Models\\HuobanBiTablecomment操作评论类，对应 Huoban\\Models\\HuobanCommentcompany公司信息类，对应 Huoban\\Models\\HuobanCompanyfile文件操作类，对应 Huoban\\Models\\HuobanFileitem表格数据类，对应 Huoban\\Models\\HuobanItemmembers用户类，对应 Huoban\\Models\\HuobanMembersorder订单类，对应 Huoban\\Models\\HuobanOrdershare分享类，对应 Huoban\\Models\\HuobanShare### Huoban初始化

[](#huoban初始化)

SDK的操作通过初始化Huoban类，然后通过Model里面不同方法进行调用，下面代码初始化一个Huoban对象:

```
$config = [
    'ticket' => 'xxxx',
    'application_id' => 'xxxx',
    'application_secret' => 'xxxxx',
];
```

获得不同的信息可以采用不同方法进行初始化，下面为表格应用

```
$huoban = new Huoban([
   'ticket' => 'xxxx'
]);
$table = $huoban->create('table');

$table->get('table_id');
```

或工作区应用

```
$huoban = new Huoban([
   'application_id' => 'xxxx',
   'application_secret' => 'xxxx'
]);
$table = $huoban->create('table');

$table->get('table_id');
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~240 days

Recently: every ~77 days

Total

10

Last Release

1405d ago

Major Versions

v1.1.1 → v2.0.02021-10-18

PHP version history (2 changes)v1.0.1PHP &gt;=5.3

v2.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/690322ccbcd844d6760da9149e5271a60073f390895f13eb90dd560a90c35f7e?d=identicon)[yulei745](/maintainers/yulei745)

![](https://avatars.githubusercontent.com/u/17868666?v=4)[LeoSui](/maintainers/LeoSui)[@LeoSui](https://github.com/LeoSui)

![](https://avatars.githubusercontent.com/u/1981755?v=4)[Joshua](/maintainers/nxy105)[@nxy105](https://github.com/nxy105)

---

Top Contributors

[![yulei745](https://avatars.githubusercontent.com/u/1788251?v=4)](https://github.com/yulei745 "yulei745 (4 commits)")[![LeoSui](https://avatars.githubusercontent.com/u/17868666?v=4)](https://github.com/LeoSui "LeoSui (1 commits)")

### Embed Badge

![Health badge](/badges/huoban-api-sdk-php/health.svg)

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5017.7k1](/packages/simplesamlphp-simplesamlphp-module-oidc)

PHPackages © 2026

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