surpaimb / kuaishou
sdk for kuaishou
dev-master
2021-06-02 01:32 UTC
Requires
- php: >=7.4
- ext-fileinfo: *
- ext-libxml: *
- ext-openssl: *
- ext-simplexml: *
- easywechat-composer/easywechat-composer: ^1.1
- guzzlehttp/guzzle: ^6.2 || ^7.0
- monolog/monolog: ^1.22 || ^2.0
- overtrue/socialite: ^3.0
- pimple/pimple: ^3.0
- psr/simple-cache: ^1.0
- symfony/cache: ^3.3 || ^4.3 || ^5.0
- symfony/event-dispatcher: ^4.3 || ^5.0
- symfony/http-foundation: ^2.7 || ^3.0 || ^4.0 || ^5.0
- symfony/psr-http-message-bridge: ^0.3 || ^1.0 || ^2.0
Requires (Dev)
- laravel/framework: ^8.12
- overtrue/phplint: ^1.2
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-10-29 06:12:40 UTC
README
📦 快手PHP SDK 快手小程序开发组件。PHP SDK for kuaishou
Requirement
- PHP >= 7.1
- Composer
- openssl 拓展
Installation
$ composer require "surpaimb/kuaishou" -vvv
Usage
基本使用(以服务端为例):
<?php use Surpaimb\KuaiShou\Factory; $options = [ 'app_id' => 'wx3cf01239eb0exxx', 'secret' => 'f1c242f4f28f735d4687abb469072xxx', // ... ]; $app = Factory::make($options); // 接口调用凭证 // $token = $app->access_token->getToken(true); // 登录:code2Session 三方小程序使用 js_code 置换 session_key 和 open_id。 $session = $app->auth->session($code); // 解密敏感信息 $user = $app->encryptor->decryptData($session->session_key, $iv, $encryptedData);
Documentation
Coming soon
Integration
Contributors
License
MIT