abhi1693/yii2-sms

Send Free Sms for Yii2

Maintainers

👁 abhi1693

Package info

github.com/abhi1693/yii2-sms

Type:yii2-extension

pkg:composer/abhi1693/yii2-sms

Statistics

Installs: 1 915

Dependents: 0

Suggesters: 0

Stars: 17

Open Issues: 0

v2.0.0 2015-02-26 09:10 UTC

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT License 0dd4ca025c749195704d5c3fd796bba5e373fd8d

  • Abhimanyu Saharan <abhimanyu.woop@teamvulcans.com>

smsextensionyii2

This package is not auto-updated.

Last update: 2026-06-21 01:13:45 UTC


README

👁 Gratipay User
👁 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.

Download using composer

$ php composer.phar require abhi1693/yii2-sms 2.0.0

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

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

And run following command to download extension using composer:

$ php composer.phar update

Basic Usage

Valid Carriers

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

Usage

$sms = new Sms();

$sms->transportType = 'php'; // php/smtp
$sms->transportOptions = [
 'host' => 'smtp.gmail.com', // Other domains can also be used
 'username' => 'your@gmail.com',
 'password' => '******',
 'port' => '465',
 'encryption' => 'ssl'
 ];
$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.