PHPackages                             simialbi/yii2-websms-com - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. simialbi/yii2-websms-com

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

simialbi/yii2-websms-com
========================

A PHP-client-library for using websms.com SMS services with yii2 framework.

1.0.1(6y ago)03311MITPHPPHP &gt;=5.6CI failing

Since Apr 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/simialbi/yii2-websms-com)[ Packagist](https://packagist.org/packages/simialbi/yii2-websms-com)[ RSS](/packages/simialbi-yii2-websms-com/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (1)

websms.com with yii2 framework
==============================

[](#websmscom-with-yii2-framework)

A lightweight PHP-client-library for using websms.com SMS services with [yii2 framework](https://www.yiiframework.com). Reduces the complexity of network-communication between client and SMS gateway, to help save time and money for focusing on their business logic.

[![Latest Stable Version](https://camo.githubusercontent.com/febe46fdfbccb883a21ea2228e8ab08349b526100389c27f3aa428e4bb9dc89f/68747470733a2f2f706f7365722e707567782e6f72672f73696d69616c62692f796969322d776562736d732d636f6d2f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/simialbi/yii2-websms-com)[![Total Downloads](https://camo.githubusercontent.com/c7517d46b9ab3429fc718bb360c8118a12d7b079b76c32bd58ac25c3dbba515b/68747470733a2f2f706f7365722e707567782e6f72672f73696d69616c62692f796969322d776562736d732d636f6d2f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/simialbi/yii2-websms-com)[![License](https://camo.githubusercontent.com/adc763a8ee31ff2b510aabfdfa79ee64f5e8d4ab4014aeeef08179c1fe789d99/68747470733a2f2f706f7365722e707567782e6f72672f73696d69616c62692f796969322d776562736d732d636f6d2f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/simialbi/yii2-websms-com)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ php composer.phar require --prefer-dist simialbi/yii2-websms-com

```

or add

```
"simialbi/yii2-websms-com": "^1.0.0"

```

to the `require` section of your `composer.json`.

Usage
-----

[](#usage)

In order to use this component, you will need to:

1. [Setup component](#setup-component) your application so that the module is available.

### Setup component

[](#setup-component)

```
return [
    // [...]
    'components' => [
        'sms' => [
            'class' => 'simialbi\yii2\websms\Connection',
            'baseUrl' => 'https://api.websms.com',
            'token' => '',
            'sendUrl' => '/rest/smsmessaging/simple'
        ]
    ]
];
```

Example Usage
-------------

[](#example-usage)

To send a message create a new `Message` instance and set at least the content and recipients.

```
