partikule / spothit-sms-bundle
将Spothit SMS API客户端与Symfony集成。
1.0.6
2023-12-04 14:39 UTC
Requires
- php: >=5.4
- partikule/spothit-sms-api: 1.0.3
- symfony/framework-bundle: *
README
将Spothit SMS API客户端与Symfony集成。
安装
推荐通过composer安装SpothitSMSBundle。
$ composer require partikule/spothit-sms-bundle
然后在您的内核中启用它。
<?php public function registerBundles() { $bundles = [ //... new Spothit\Bundle\SMSBundle\SpothitSMSBundle(), ]; }
配置
spothit_sms: api_key: "****************"
使用方法
您可以使用以下方法从Symfony容器中获取Spothit SMS API客户端:
<?php $container->get('spothit_sms.api.client');