karser / smsvesti-bundle
Symfony SMSVestiBundle
dev-master
2014-02-08 11:55 UTC
Requires
- php: >=5.3.2
- guzzle/guzzle: *
- karser/sms-bundle: dev-master
- symfony/framework-bundle: >=2.1,<3.0
This package is auto-updated.
Last update: 2024-09-20 07:13:15 UTC
README
先决条件
此版本的包需要 Symfony 2.1+ 和 Doctrine ORM 2.2+
安装
安装是一个简单的 3 步过程
- 使用 composer 下载 KarserSMSVestiBundle
- 启用包
- 配置 KarserSMSVestiBundle
第 1 步:使用 composer 下载 KarserSMSVestiBundle
在 composer.json 中添加 KarserSMSVestiBundle
{ "require": { "karser/smsvesti-bundle": "dev-master" } }
现在运行以下命令告诉 composer 下载包
$ php ./composer.phar update
Composer 将包安装到项目的 vendor/karser
目录。
第 2 步:启用包
在 kernel 中启用包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Karser\SMSVestiBundle\KarserSMSVestiBundle(), ); }
第 3 步:配置 KarserSMSVestiBundle
根据您使用的数据存储类型,将以下配置添加到您的 config.yml
文件中。
# app/config/config.yml karser_sms_vesti: login: "%sms_vesti_login%" password: "%sms_vesti_password%"
# app/config/parameters.yml parameters: sms_vesti_login: ~ sms_vesti_password: ~
使用步骤
基本使用
您可以通过 cli 命令检查余额
$ app/console smsvesti:balance
> Balance is 6.45