davidyou / hello-douyin
PHP抖音SDK
v1.0
2024-06-26 13:44 UTC
Requires
- php: >=8.0.2
- ext-curl: *
- ext-fileinfo: *
- ext-libxml: *
- ext-openssl: *
- ext-simplexml: *
- ext-sodium: *
- nyholm/psr7: ^1.5
- nyholm/psr7-server: ^1.0
- psr/http-client: ^1.0
- psr/simple-cache: ^1.0|^2.0|^3.0
- symfony/cache: ^5.4|^6.0|^7.0
- symfony/http-client: ^5.4|^6.0|^7.0
- symfony/http-foundation: ^5.4|^6.0|^7.0
- symfony/mime: ^5.4|^6.0|^7.0
- symfony/polyfill-php81: ^1.25
- symfony/psr-http-message-bridge: ^2.1.2|^6.4.0
- thenorthmemory/xml: ^1.0
Requires (Dev)
- jetbrains/phpstorm-attributes: ^1.0
- symfony/var-dumper: ^5.2
This package is auto-updated.
Last update: 2024-10-26 14:34:17 UTC
README
PHP 抖音开发 SDK
环境需求
- PHP >= 8.0.2
- Composer >= 2.0
安装
composer require davidyou/hello-douyin
使用示例
基本使用(以小程序服务端为例):
<?php use HelloDouYin\MiniProgram\Application; $config = [ 'app_id' => '5660f39249esdfxd', 'secret' => '42f4f28f73423dfdsd072xxx', 'aes_key' => 'opqrstuvwxyz01267EdSBCDEFG', 'token' => 'HelloDouYin', ]; $app = new Application($config); $server = $app->getServer(); $server->with(fn() => "您好!HelloDouYin!"); $response = $server->serve();
License
MIT