PHPackages                             liukangkun/kuaishou - 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. liukangkun/kuaishou

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

liukangkun/kuaishou
===================

快手SDK

1.0.10(1y ago)021MITPHPPHP &gt;=7.2

Since Jul 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/likry/kuaishou)[ Packagist](https://packagist.org/packages/liukangkun/kuaishou)[ RSS](/packages/liukangkun-kuaishou/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

安装
--

[](#安装)

```
composer require liukangkun/kuaishou:^1.0
```

使用说明
----

[](#使用说明)

[快手开放平台文档](https://developers.e.kuaishou.com/docs)

### 授权

[](#授权)

```
use Liukangkun\Kuaishou\Auth;

// 获取token
$auth = new Auth(APPID, SECRET);
var_dump($auth->getTokens(AUTH_CODE));

// 刷新token
var_dump($auth->refreshTokens(REFRESH_TOKEN));

//拉取token下授权广告账户
var_dump($auth->getAdvertisers(ACCESS_TOKEN));
```

### 基础调用

[](#基础调用)

```
$client = new Client(ADVERTISE_ID, TOKEN);
var_dump($client->advertiser->getInfo());
```

所有方法
----

[](#所有方法)

广告主模块调用方法获取广告主信息$client-&gt;advertiser-&gt;getInfo()获取广告账户余额信息$client-&gt;advertiser-&gt;getFunds()获取广告账户流水信息$client-&gt;advertiser-&gt;getFlows($params)账户日预算查询$client-&gt;advertiser-&gt;getBudget()广告计划模块调用方法获取广告计划$client-&gt;campaign-&gt;get($params)创建广告计划$client-&gt;campaign-&gt;create($params)修改广告计划$client-&gt;campaign-&gt;update($params)更新计划状态$client-&gt;campaign-&gt;updateStatus($campaignId, $status)广告组调用方法查询广告组$client-&gt;unit-&gt;get($params)创建广告组$client-&gt;unit-&gt;create($params)修改广告组$client-&gt;unit-&gt;update($params)修改广告组出价$client-&gt;unit-&gt;updateBid($unitId, $bid)修改广告组预算$client-&gt;unit-&gt;updateBudget($unitId, $budget)修改广告组状态$client-&gt;unit-&gt;updateStatus($unitId, $status)广告创意调用方法查询程序化创意$client-&gt;creative-&gt;get($params)创建程序化创意$client-&gt;creative-&gt;create($params)修改程序化创意$client-&gt;creative-&gt;update($params)修改创意状态$client-&gt;creative-&gt;updateStatus($creativeId, $status)数据报表调用方法广告主数据$client-&gt;report-&gt;getAdvertiserReports($params)广告计划数据$client-&gt;report-&gt;getCampaignReports($params)广告组数据$client-&gt;report-&gt;getUnitReports($params)广告创意数据$client-&gt;report-&gt;getCreativeReports($params)广告素材报表$client-&gt;report-&gt;getMaterialReports($params)工具（文件管理）调用方法广告图片$client-&gt;tool-&gt;file-&gt;uploadImage($params)获取图片信息$client-&gt;tool-&gt;file-&gt;getImage($params)获取图片列表$client-&gt;tool-&gt;file-&gt;getImages($params)上传视频$client-&gt;tool-&gt;file-&gt;uploadVideo($params)文件流式上传$client-&gt;tool-&gt;file-&gt;streamUploadVideo($file)文件分片上传$client-&gt;tool-&gt;file-&gt;chunkUploadVideo($file)获取视频列表$client-&gt;tool-&gt;file-&gt;getVideos($params)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Every ~2 days

Total

5

Last Release

666d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/401d68f2f5f15a3166a3ad33e2f259244838925cc6a2386adbedf73781974cda?d=identicon)[liukangkun](/maintainers/liukangkun)

---

Top Contributors

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

---

Tags

kuaishou

### Embed Badge

![Health badge](/badges/liukangkun-kuaishou/health.svg)

```
[![Health](https://phpackages.com/badges/liukangkun-kuaishou/health.svg)](https://phpackages.com/packages/liukangkun-kuaishou)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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