Download the PHP package fengz/kuaishou-miniapp-sdk without Composer

On this page you can find all versions of the php package fengz/kuaishou-miniapp-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package kuaishou-miniapp-sdk

Fengz 快手小程序 SDK

CI

中文 | English

为 快手小程序(Kuaishou Mini Program) 平台打造的服务端 SDK,专为 Laravel 设计。

功能特性

环境要求

安装

发布配置文件:

在 .env 中配置凭证:

使用

也可以通过全局辅助函数调用:

关于成功码

快手网关用 result 作为成功/失败标记,但成功值在各接口间并不统一:

接口 成功 result
getAccessToken、code2Session、sendMessage 1
generateMpQrCode 0

HTTP 客户端支持按调用传入成功码(默认 1),二维码管理器内部已显式传 0。你无需关心这个差异——每个管理器都会走正确的值。

错误处理

SDK 抛出的所有异常都继承 Fengz\KuaishouMiniapp\Exceptions\KuaishouMiniappException,按子类捕获可做精细控制:

token 失效类错误(result == 100200102,"access_token 授权错误")会在自动刷新 token 后重试一次。

未覆盖的能力

以下能力不在本 SDK 范围内,以及原因:

测试

许可证

MIT —— 详见 LICENSE。


All versions of kuaishou-miniapp-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
illuminate/contracts Version ^13.0
illuminate/http Version ^13.0
illuminate/support Version ^13.0
ext-json Version *
ext-mbstring Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fengz/kuaishou-miniapp-sdk contains the following files

Loading the files please wait ...