surpaimb / bytedance
字节跳动SDK(抖音、头条、火山、西瓜视频)
1.0.1
2021-05-11 03:30 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-09-29 05:56:22 UTC
README
📦 字节跳动PHP SDK,用于抖音小程序、头条小程序开发组件。PHP SDK for bytedance (douyin, tiktok, toutiao)
要求
- PHP >= 7.1
- Composer
- openssl 扩展
安装
$ composer require "surpaimb/bytedance" -vvv
用法
基本使用(以服务端为例)
<?php use Surpaimb\ByteDance\Factory; $options = [ 'app_id' => 'wx3cf01239eb0exxx', 'secret' => 'f1c242f4f28f735d4687abb469072xxx', // ... ]; $app = Factory::make($options); $session = $app->auth->session($code);
文档
即将推出
集成
贡献者
许可协议
MIT