library sms-gateway
sms-gateway php library
g4/sms-gateway
sms-gateway php library
- Thursday, April 16, 2015
- by g4code
- Repository
- 4 Watchers
- 0 Stars
- 2,137 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 7 % Grown
sms-gateway
sms-gateway - php library, (*1)
Install
Via Composer, (*2)
composer require g4/sms-gateway
Usage
Send Message
require_once 'vendor/autoload.php';
// Twilio
$account_sid = '[AccountSid]';
$auth_token = '[AuthToken]';
$driver = new \G4\SmsGateway\Adapter\Twilio($account_sid, $auth_token);
$smsGateway = new \G4\SmsGateway\SmsGateway($driver);
// \G4\SmsGateway\Message
$message = $smsGateway
->from('+00000000000')
->to('+00000000000')
->send('Hello world!');
View Message
require_once __DIR__ . '/../../vendor/autoload.php';
// Twilio
$account_sid = 'xxx';
$auth_token = 'xxx';
$driver = new \G4\SmsGateway\Adapter\Twilio($account_sid, $auth_token);
$smsGateway = new \G4\SmsGateway\SmsGateway($driver);
// \G4\SmsGateway\Message
$message = $smsGateway->view('SMxxxxxxxxxxxxx');
Development
Install dependencies
$ make install
Run tests
$ make test
License
(The MIT License)
see LICENSE file for details..., (*3)
dev-master
9999999-dev
sms-gateway php library
Sources
Download
MIT
The Requires
The Development Requires
by
Drasko Gomboc
by
Dejan Samardzija
by
Ivan Krickovic
gateway
sms
twilio
dev-develop
dev-develop
sms-gateway php library
Sources
Download
MIT
The Requires
The Development Requires
by
Drasko Gomboc
by
Dejan Samardzija
by
Ivan Krickovic
gateway
sms
twilio
1.0.0
1.0.0.0
sms-gateway php library
Sources
Download
MIT
The Requires
The Development Requires
by
Drasko Gomboc
by
Dejan Samardzija
by
Ivan Krickovic
gateway
sms
twilio
0.0.1
0.0.1.0
sms-gateway php library
Sources
Download
MIT
The Requires
The Development Requires
by
Drasko Gomboc
by
Dejan Samardzija
by
Ivan Krickovic
gateway
sms
twilio