daika7ana / laravel-web2sms
NETOPIA Web2SMS Laravel integration with CURL
Installs: 151
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 2
Open Issues: 0
Type:laravel-package
Requires
- php: >=5.4.0
- illuminate/support: >=5.4
README
Laravel 5.4+ integration package for Web2SMS.ro
composer require daika7ana/laravel-web2sms
In config/app.php :
Under Package Service providers:
Daika\Web2sms\Web2smsServiceProvider::class
Under Aliases:
'Web2sms' => Daika\Web2sms\SmsSender::class
php artisan vendor:publish --provider="Daika\Web2sms\Web2smsServiceProvider" --tag=config
Edit credentials and default values in config/web2sms.php.
Usage example:
>>> $w2sms = new Web2sms;
>>> $w2sms->recipient('407XXXXXXXX');
>>> $w2sms->message('Another test');
>>> $w2sms->send();