surpaimb / bytedance
sdk for bytedance (douyin, toutiao, huoshan, xigua)
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-10-29 06:18:53 UTC
README
📦 字节跳动PHP SDK 抖音小程序、头条小程序开发组件。PHP SDK for bytedance (douyin, tiktok, toutiao)
Requirement
- PHP >= 7.1
- Composer
- openssl 拓展
Installation
$ composer require "surpaimb/bytedance" -vvv
Usage
基本使用(以服务端为例):
<?php use Surpaimb\ByteDance\Factory; $options = [ 'app_id' => 'wx3cf01239eb0exxx', 'secret' => 'f1c242f4f28f735d4687abb469072xxx', // ... ]; $app = Factory::make($options); $session = $app->auth->session($code);
Documentation
Coming soon
Integration
Contributors
License
MIT