File tree 5 files changed +272
-214
lines changed
5 files changed +272
-214
lines changed Original file line number Diff line number Diff line change 6
6
- hhvm
7
7
8
8
before_script :
9
- - composer install --dev
9
+ - composer install
10
10
11
- script : phpunit
11
+ script : vendor/bin/ phpunit
Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ Character counter for SMS Messages
5
5
[ ![ Build Status] ( https://img.shields.io/travis/instasent/sms-counter-php.svg?style=flat-square )] ( https://travis-ci.org/instasent/sms-counter-php )
6
6
[ ![ SensioLabsInsight] ( https://img.shields.io/sensiolabs/i/0a2fa87a-0287-46f6-b8b5-818b44a2b9f9.svg?style=flat-square )] ( https://insight.sensiolabs.com/projects/0a2fa87a-0287-46f6-b8b5-818b44a2b9f9 )
7
7
8
- ##Usage
8
+ ## Usage
9
9
10
10
``` php
11
11
use Instasent\SMSCounter\SMSCounter;
12
12
13
- $smsCounter = new SMSCounter;
13
+ $smsCounter = new SMSCounter() ;
14
14
$smsCounter->count('some-string-to-be-counted');
15
15
```
16
16
@@ -26,23 +26,32 @@ stdClass Object
26
26
)
27
27
```
28
28
29
- ##Installation
29
+ You can sanitize your text to be a valid GSM 03.38 charset
30
+
31
+ ``` php
32
+ use Instasent\SMSCounter\SMSCounter;
33
+
34
+ $smsCounter = new SMSCounter();
35
+ $smsCounter->sanitizeToGSM('dadáó'); //return dadao
36
+ ```
37
+
38
+ ## Installation
30
39
31
40
` sms-counter-php ` is available via [ composer] ( http://getcomposer.org ) on [ packagist] ( https://packagist.org/packages/instasent/sms-counter-php ) .
32
41
33
42
``` json
34
43
{
35
- "require" : {
36
- "instasent/sms-counter-php" : " dev-master "
37
- }
44
+ "require" : {
45
+ "instasent/sms-counter-php" : " ^0.3 "
46
+ }
38
47
}
39
48
```
40
49
41
- ##License
50
+ ## License
42
51
43
52
SMS Counter (PHP) is released under the [ MIT License] ( LICENSE-MIT.md )
44
53
45
- ###Mentions
54
+ ### Mentions
46
55
47
56
* Original idea : [ danxexe/sms-counter] ( https://github.com/danxexe/sms-counter )
48
57
* Fork Idea from: [ acpmasquerade/sms-counter-php] ( https://github.com/acpmasquerade/sms-counter-php )
You can’t perform that action at this time.
0 commit comments