flyspring / toutiao
There is no license information available for the latest version (v1.0.3) of this package.
字节跳动 今日头条 toutiao bytedance sdk
v1.0.3
2020-09-02 09:10 UTC
Requires
- php: >=7.1
- guzzlehttp/guzzle: ~6.2.1
- monolog/monolog: ^1.17
- pimple/pimple: 3.0.2
- psr/simple-cache: ^1.0
- symfony/http-foundation: ^2.7 || ^3.0 || ^4.0
- symfony/psr-http-message-bridge: ^0.3 || ^1.0
This package is auto-updated.
Last update: 2025-03-29 00:49:11 UTC
README
📦 字节跳动PHP SDK 抖音小程序、头条小程序开发组件。PHP SDK for bytedance (douyin, tiktok, toutiao)
Requirement
- PHP >= 7.1
- Composer
- openssl 拓展
Installation
$ composer require "flyspring/toutiao" -vvv
Usage
基本使用(以服务端为例),所有例子参见examples文件夹:
use Spring\TouTiao\Application as MiniProgram; $config = require '../src/config/toutiao.php'; if (empty($config)) { echo 'config is empty'; exit; } /** * * @var MiniProgram $miniProgram */ $miniProgram = new MiniProgram($config); // code2session $ret = $miniProgram->auth->session(''); var_dump($ret);
Documentation
Coming soon
Integration
Laravel 5 集成,参见代码ServiceProvider.php
Contributors
License
MIT