karser/smsvesti-bundle

Symfony SMSVestiBundle

安装: 22

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

公开问题: 0

类型:symfony-bundle

dev-master 2014-02-08 11:55 UTC

This package is auto-updated.

Last update: 2024-09-20 07:13:15 UTC


README

SMSVesti

先决条件

此版本的包需要 Symfony 2.1+ 和 Doctrine ORM 2.2+

安装

安装是一个简单的 3 步过程

  1. 使用 composer 下载 KarserSMSVestiBundle
  2. 启用包
  3. 配置 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