Package Data | |
---|---|
Maintainer Username: | spitoglou |
Maintainer Contact: | s.pitoglou@csl.gr (Stavros Pitoglou) |
Package Create Date: | 2015-09-21 |
Package Last Update: | 2016-04-13 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-14 15:06:14 |
Package Statistics | |
---|---|
Total Downloads: | 11 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This is a package for sending SMS messages utilizing the Doluna SMS service API.
Require this package with composer: (to be completed when this will be published)
composer require spitoglou/doluna-sms
After updating composer, add the ServiceProvider to the providers array in config/app.php
'providers' => [
// ...
Spitoglou\SMS\SMSServiceProvider::class,
]
Copy the package config to your local config with the publish command:
php artisan vendor:publish
Example of quick (and a little dirty) implementation, right from a route closure:
Route::get('smsSend/{message}', function ($message) {
$recipient = new \Spitoglou\SMS\SMSRecipient('306973######'); //12 digit international number here (30 stands for Greece etc.)
return \Spitoglou\SMS\SMSClass::SMSSend($recipient, $message);
});
Edit sms.php
in the app/config
directory for more configurations.
/*
|--------------------------------------------------------------------------
| API KEY
|--------------------------------------------------------------------------
|
| You will need to provide here the API key that you can generate from
| the Doluna site, after you have registered.
|
*/
'dolunaAPIKey' => 'YourApiKeyHere',
Doluna-SMS is licensed under the MIT License.
Copyright 2015 Stavros Pitoglou