Giter VIP home page Giter VIP logo

yii2-sms's Introduction

Yii2-Sms

Dependency Status Latest Stable Version Total Downloads Latest Unstable Version License

Yii2-Sms sends free messages using Swift Mail

Documentation

Installation

This document will guide you through the process of installing Yii2-Sms using composer. Installation is a quick and easy two-step process.

Step 1: Download using composer

Add Yii2-Sms to the require section of your composer.json file:

{
    "require": {
        "abhi1693/yii2-sms": "1.0.0"
    }
}

And run following command to download extension using composer:

$ php composer.phar update

Step 2: Configure your application

$config = [
    ...
    'components' => [
        ...
        'sms' => [
            'class'             => 'abhimanyu\sms\components\Sms' // Class (Required)
            'transportType'     => 'smtp'                         // smtp/php (Optional)
            'transportOptions'  => [                              // (Required)
                'host'       => 'smtp.gmail.com'                  // Other domains can also be used
                'username'   => '[email protected]',
                'password'   => '******',
                'port'       => '465',
                'encryption' => 'ssl'
            ]
        ]
    ]
]

Basic Usage

Valid Carriers

  • AT&T
  • Boost Mobile
  • Cingular
  • Metro PCS
  • Nextel
  • Sprint
  • T-Mobile
  • Verizon
  • Virgin Mobile

Usage

$sms = new Sms();

$carrier = "T-Mobile";
$number = "0123456789";
$subject = "Subject";
$message = "Message";
$sms->send($carrier, $number, $subject, $message);

How to contribute?

Contributing instructions are located in CONTRIBUTING.md file.

License

Yii2-sms is released under the MIT License. See the bundled LICENSE for details.

yii2-sms's People

Contributors

abhi1693 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.