streply / streply-symfony
Streply Symfony SDK
资助包维护!
streply.com/pricing
streply.com
0.0.27
2024-05-15 19:32 UTC
Requires
- streply/streply-php: *
- symfony/console: ^4.0||^5.0||^6.0
- symfony/dependency-injection: ^4.0||^5.0||^6.0
- symfony/event-dispatcher: ^4.0||^5.0||^6.0
- symfony/http-kernel: ^4.0||^5.0||^6.0
- symfony/security-core: ^4.0||^5.0||^6.0
README
安装
安装 streply/streply-symfony
包
composer require streply/streply-symfony
启用组件
将组件添加到 config/bundles.php
中注册的组件列表
return [ Streply\StreplyBundle\StreplyBundle::class => ['all' => true] ];
配置
在 config/packages/streply.yaml
中添加默认配置
streply:
dsn: '%env(STREPLY_DSN)%'
环境变量
将 DSN 信息添加到 .env
文件
###> streply/streply-bundle ### STREPLY_DSN="https://clientPublicKey@api.streply.com/projectId" ###< streply/streply-bundle ###