abusalam /
laravel-smsgateway
| 1 | <?php |
||
| 2 | return [ |
||
| 3 | |||
| 4 | /* |
||
| 5 | |-------------------------------------------------------------------------- |
||
| 6 | | Default SMS Gateway Name |
||
| 7 | |-------------------------------------------------------------------------- |
||
| 8 | | |
||
| 9 | | Here you may specify which of the SMS Gateways below you wish |
||
| 10 | | to use as your default SMS Gateway for sending SMSs. Of course |
||
| 11 | | you may use many connections at once using the SMS Gateway library. |
||
| 12 | | |
||
| 13 | */ |
||
| 14 | 'default' => env('SMS_GATEWAY', 'local'), |
||
| 15 | |||
| 16 | /* |
||
| 17 | |-------------------------------------------------------------------------- |
||
| 18 | | SMS Gateways |
||
| 19 | |-------------------------------------------------------------------------- |
||
| 20 | | |
||
| 21 | | Here are each of the SMS Gateways setup for your application. |
||
| 22 | | Of course, examples of configuring each SMS Gateway platform that is |
||
| 23 | | supported by Laravel is shown below to make development simple. |
||
| 24 | | |
||
| 25 | | |
||
| 26 | | All SMS Gateway work in Laravel is done through the PHP SMS facilities |
||
| 27 | | so make sure you have the driver for your particular SMS Gateway of |
||
| 28 | | choice installed on your machine before you begin development. |
||
| 29 | | |
||
| 30 | */ |
||
| 31 | |||
| 32 | /*============================================================= |
||
| 33 | = Default SMS Gateway API Configuration = |
||
| 34 | =============================================================*/ |
||
| 35 | 'cdacSms' => [ |
||
| 36 | /* SMS Gateway API Endpoint Configurations */ |
||
| 37 | 'apiEndpoint' => env('SMS_URL', 'https://msdgweb.mgov.gov.in/esms/sendsmsrequestDLT'), |
||
| 38 | 'apiMobileNoParam' => env('SMS_MOBILE_NO_PARAM', 'mobileno'), |
||
| 39 | 'apiSmsParam' => env('SMS_SMS_PARAM', 'content'), |
||
| 40 | /* SMS Gateway Constant Parameter Configurations */ |
||
| 41 | 'apiParams' => [ |
||
| 42 | 'apiUserParam' => env('SMS_USERNAME_PARAM', 'username'), |
||
| 43 | 'apiPassParam' => env('SMS_PASSWORD_PARAM', 'password'), |
||
| 44 | 'apiSenderIdParam' => env('SMS_SENDER_ID_PARAM', 'senderid'), |
||
| 45 | 'apiTemplateIdParam' => env('SMS_TEMPLATE_ID_PARAM', 'templateid'), |
||
| 46 | 'apiSecureKeyParam' => env('SMS_API_KEY_PARAM', 'key'), |
||
| 47 | 'apiServiceTypeParam' => env('SMS_SERVICE_TYPE_PARAM', 'smsservicetype'), |
||
| 48 | ], |
||
| 49 | 'apiValues' => [ |
||
| 50 | 'apiUser' => env('SMS_USERNAME', 'dummyuser'), |
||
| 51 | 'apiPass' => sha1(trim(env('SMS_PASSWORD', 'dummypass'))), |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 52 | 'apiSenderId' => env('SMS_SENDER_ID', 'DUMMY'), |
||
| 53 | 'apiTemplateId' => env('SMS_TEMPLATE_ID', '01235468238656'), |
||
| 54 | 'apiSecureKey' => env('SMS_API_KEY', 'top-secret-dummy-key'), |
||
| 55 | 'apiServiceType' => env('SMS_SERVICE_TYPE_PARAM', 'singlemsg'), |
||
| 56 | ] |
||
| 57 | ], |
||
| 58 | /*===== End of Default SMS Gateway API Configuration ======*/ |
||
| 59 | |||
| 60 | 'onenessSms' => [ |
||
| 61 | /* SMS Gateway API Endpoint Configurations */ |
||
| 62 | 'apiEndpoint' => env('SMS_URL', 'https://myvfirst.com/smpp/sendsms'), |
||
| 63 | 'apiMobileNoParam' => env('SMS_MOBILE_NO_PARAM', 'to'), |
||
| 64 | 'apiSmsParam' => env('SMS_SMS_PARAM', 'text'), |
||
| 65 | 'apiTagParam' => env('SMS_TAG_PARAM', 'tag'), |
||
| 66 | /* SMS Gateway Constant Parameter Configurations */ |
||
| 67 | 'apiParams' => [ |
||
| 68 | 'apiSenderIdParam' => env('SMS_SENDER_ID_PARAM', 'from'), |
||
| 69 | 'apiDlrUrlParam' => env('SMS_API_DLR_URL_PARAM', 'dlr-url'), |
||
| 70 | ], |
||
| 71 | 'apiValues' => [ |
||
| 72 | 'apiSenderId' => env('SMS_SENDER_ID', 'DUMMY'), |
||
| 73 | 'apiDlrUrl' => env('SMS_API_DLR_URL', env('APP_URL' . '/sms/status')), |
||
| 74 | ] |
||
| 75 | ], |
||
| 76 | |||
| 77 | 'local' => [ |
||
| 78 | /* SMS Gateway API Endpoint Configurations */ |
||
| 79 | 'apiEndpoint' => 'http://time.jsontest.com/', |
||
| 80 | 'apiMobileNoParam' => 'recipient', |
||
| 81 | 'apiSmsParam' => 'sms', |
||
| 82 | /* SMS Gateway Parameter Configurations */ |
||
| 83 | 'apiParams' => [ |
||
| 84 | 'apiUserParam' => env('SMS_USERNAME_PARAM', 'username'), |
||
| 85 | 'apiPassParam' => env('SMS_PASSWORD_PARAM', 'password'), |
||
| 86 | 'apiSenderIdParam' => env('SMS_SENDER_ID_PARAM', 'senderid'), |
||
| 87 | 'apiSecureKeyParam' => env('SMS_API_KEY_PARAM', 'key'), |
||
| 88 | ], |
||
| 89 | 'apiValues' => [ |
||
| 90 | 'apiUser' => env('SMS_USERNAME', 'dummyuser'), |
||
| 91 | 'apiPass' => sha1(trim(env('SMS_PASSWORD', 'dummypass'))), |
||
| 92 | 'apiSenderId' => env('SMS_SENDER_ID', 'DUMMY'), |
||
| 93 | 'apiSecureKey' => env('SMS_API_KEY', 'top-secret-dummy-key'), |
||
| 94 | ] |
||
| 95 | ], |
||
| 96 | ]; |
||
| 97 |