thefair / bytedance
sdk for bytedance (douyin, toutiao, huoshan, xigua)
1.0.8
2023-02-15 06:54 UTC
Requires
- php: >=7.3
- ext-fileinfo: *
- ext-json: *
- ext-libxml: *
- ext-openssl: *
- ext-simplexml: *
- easywechat-composer/easywechat-composer: ^1.1
- guzzlehttp/guzzle: ^6.2 || ^7.0
- monolog/monolog: ^2.0
- overtrue/socialite: ~2.0
- pimple/pimple: ^3.0
- psr/simple-cache: ^1.0
- simplesoftwareio/simple-qrcode: ^4.2
- 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
Conflicts
- monolog/monolog: >=2.6.0
README
📦 字节跳动PHP SDK 抖音小程序、头条小程序开发组件。PHP SDK for bytedance (douyin, tiktok, toutiao)
感谢 surpaimb/bytedance
扩展,这个基础上开发的,完善了功能,主要为了兼容 swoole hyperf
Requirement
- PHP >= 7.4
- Composer
- openssl 拓展
Installation
$ composer require "thefair/bytedance" -vvv
Usage
基本使用(以服务端为例):
<?php use TheFairLib\ByteDance\Factory; $options = [ 'app_id' => 'wx3cf01239eb0exxx', 'secret' => 'f1c242f4f28f735d4687abb469072xxx', // ... ]; $app = Factory::make($options); $session = $app->auth->session($code);
Documentation
Coming soon
Integration
Contributors
License
MIT