Skip to content

Commit d4b0a94

Browse files
author
Oleksii
committed
fix
1 parent ea31ea6 commit d4b0a94

File tree

5 files changed

+27
-10
lines changed

5 files changed

+27
-10
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ modification, are permitted provided that the following conditions are met:
1111
this list of conditions and the following disclaimer in the documentation
1212
and/or other materials provided with the distribution.
1313

14-
* Neither the name of avator or avat0r or yii2-turbosms nor the names of its
14+
* Neither the name of avator or yii2-turbosms nor the names of its
1515
contributors may be used to endorse or promote products derived from
1616
this software without specific prior written permission.
1717

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ The preferred way to install this extension is through [composer](http://getcomp
1010
Either run
1111

1212
```
13-
php composer.phar require --prefer-dist avat0r/yii2-turbosms "*"
13+
php composer.phar require --prefer-dist avator/yii2-turbosms "*"
1414
```
1515

1616
or add
1717

1818
```
19-
"avat0r/yii2-turbosms": "*"
19+
"avator/yii2-turbosms": "*"
2020
```
2121

2222
to the require section of your `composer.json` file.
@@ -34,7 +34,7 @@ Add the following in your config:
3434
...
3535
'components'=>array(
3636
'turbosms' => [
37-
'class' => 'avat0r\turbosms\Turbosms',
37+
'class' => 'avator\turbosms\Turbosms',
3838
'sender' => 'your_sender',
3939
'login' => 'your_login',
4040
'password' => 'your_password',
@@ -43,6 +43,23 @@ Add the following in your config:
4343
),
4444
...
4545
```
46+
If you want test sms in debug mode change config:
47+
```php
48+
<?php
49+
...
50+
'components'=>array(
51+
'turbosms' => [
52+
'class' => 'avator\turbosms\Turbosms',
53+
'sender' => 'your_sender',
54+
'login' => 'your_login',
55+
'password' => 'your_password',
56+
'debug' => true,
57+
],
58+
...
59+
),
60+
...
61+
```
62+
in debug mode sms not send only add to db table.
4663

4764
Usage
4865
-----

Turbosms.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace avat0r\turbosms;
3+
namespace avator\turbosms;
44

55
use Yii;
66
use SoapClient;
77
use yii\base\InvalidConfigException;
88
use yii\base\Component;
9-
use avat0r\turbosms\models\TurboSmsSent;
9+
use avator\turbosms\models\TurboSmsSent;
1010

1111
/**
1212
*
@@ -35,7 +35,7 @@ class Turbosms extends Component
3535
/**
3636
* @var bool
3737
*/
38-
public $debug = true;
38+
public $debug = false;
3939

4040
protected $client;
4141

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "avat0r/yii2-turbosms",
2+
"name": "avator/yii2-turbosms",
33
"description": "Yii2 turbosms",
44
"type": "yii2-extension",
55
"keywords": ["yii2","extension","helpers","turbosms","sms"],
@@ -15,7 +15,7 @@
1515
},
1616
"autoload": {
1717
"psr-4": {
18-
"avat0r\\turbosms\\": ""
18+
"avator\\turbosms\\": ""
1919
}
2020
}
2121
}

models/TurboSmsSent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace avat0r\turbosms\models;
3+
namespace avator\turbosms\models;
44

55
use Yii;
66

0 commit comments

Comments
 (0)