marcw / nexmo-bundle
Nexmo PHP 客户端的一个简单 Symfony 集成
dev-master
2017-03-15 14:21 UTC
Requires
- nexmo/client: @beta
- symfony/framework-bundle: ~3.0
This package is auto-updated.
Last update: 2024-09-10 21:08:41 UTC
README
这是一个简单集成了 Nexmo PHP 客户端库 的扩展包。
安装
composer require marcw/nexmo-bundle
在您的 AppKernel.php
文件中添加
new MarcW\Bundle\NexmoBundle\MarcWNexmoBundle(),
配置
在您的 config.yml
文件中添加
marc_w_nexmo: api_key: <your nexmo api key> api_secret: <your nexmo api secret>
使用方法
以此方式以服务的形式访问 Nexmo 客户端
$client = $container->get('marcw.nexmo.client');
贡献
是的,请。
许可协议
本软件遵循 MIT 许可协议。