SimpleSMSGreek
, (*1)
Introduction
SimpleSMSGreek is a wrapper for SimpleSMS package that provides additional Greek SMS drivers. simplesoftwareio/simple-sms. This is a package for Laravel and provides the capability to use Greek gateways to send SMS. These are the extra providers: Smsn, Ez4usms, Sms.net.gr, (*2)
Requirements
Laravel 5
- PHP: >= 7.0.0
- simplesoftwareio/simple-sms >= 3.1.0
Installation
Composer
You can run the composer command composer require karamanisweb/simplesmsgreek
or you can add the package to your require in your composer/json file:, (*3)
"require": {
"karamanisweb/simplesmsgreek": "1.0.*"
}
And then run the command composer update., (*4)
This procedure will install the package into your application., (*5)
Service Providers
Once you have installed the package to your laravel application., (*6)
Add KaramanisWeb\SimpleSMSGreek\SmsServiceProvider::class into your config/app.php config file inside the providers array., (*7)
Aliases
Now all you have to do is register the Facade., (*8)
Add 'SMS' => SimpleSoftwareIO\SMS\Facades\SMS::class in your config/app.php config file inside the aliases array., (*9)
Publish Configuration
If you need to change to make changes into the configuration file you must run the following command to save your config file to your local app:, (*10)
php artisan vendor:publish --provider="KaramanisWeb\SimpleSMSGreek\SmsServiceProvider"
This will copy the configuration files to your config folder., (*11)
or you can manual copy the config file from vendors/karamanisweb/simplesmsgreek/Config directory to your local app., (*12)
Documentation
This package adds 3 greek SMS drivers
- Smsn
- Ez4usms
- Sms.net.gr, (*13)
#### Smsn, (*14)
```php
'driver' => env('SMS_DRIVER', 'smsn'),
'smsn' => [
'username' => env('SMSN_USERNAME', 'Your Smsn Username'),
'password' => env('SMSN_PASSWORD', 'Your Smsn Password'),
'unicode' => env('SMSN_UNICODE', false),
], (*15)
#### Ez4usms
```php
'driver' => env('SMS_DRIVER', 'ez4us'),
'ez4us' => [
'username' => env('EZ4US_USERNAME', 'Your Ez4us Username'),
'password' => env('EZ4US_PASSWORD', 'Your Ez4us Password'),
'unicode' => env('EZ4US_UNICODE', false),
]
Sms.net.gr
'driver' => env('SMS_DRIVER', 'smsnetgr'),
'smsnetgr' => [
'username' => env('SMSNETGR_USERNAME', 'Your Smsnetgr Username'),
'api_password' => env('SMSNETGR_API_PASS', 'Your Smsnetgr API Password'),
'api_token' => env('SMSNETGR_API_TOKEN', 'Your Smsnetgr API Token'),
'unicode' => env('SMSNETGR_UNICODE', false),
]
The documentation for SimpleSMS can be found here., (*16)