-
Notifications
You must be signed in to change notification settings - Fork 13
/
resala.php
86 lines (75 loc) · 2.96 KB
/
resala.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
use RobustTools\Resala\Drivers\ConnekioDriver;
use RobustTools\Resala\Drivers\GatewaySA;
use RobustTools\Resala\Drivers\InfobipDriver;
use RobustTools\Resala\Drivers\VodafoneDriver;
use RobustTools\Resala\Drivers\VectoryLinkDriver;
return [
/*
* You can specify a default service provider driver here.
* If it is not set we'll use vodafone as the default driver.
*/
'default' => env('SMS_DRIVER', 'vodafone'),
/*
|--------------------------------------------------------------------------
| List of sms drivers
|--------------------------------------------------------------------------
|
| This is a list of possible sms gateways drivers
|
*/
'drivers' => [
'vodafone' => [
'end_point' => env('VODAFONE_END_POINT'),
'account_id' => env('VODAFONE_ACCOUNT_ID'),
'password' => env('VODAFONE_PASSWORD'),
'secure_hash' => env('VODAFONE_SECURE_HASH'),
'sender_name' => env('VODAFONE_SENDER_NAME', 'Vodafone')
],
'connekio' => [
'single_sms_endpoint' => env('SINGLE_SMS_ENDPOINT'),
'batch_sms_endpoint' => env('BATCH_SMS_ENDPOINT'),
'username' => env('CONNEKIO_USERNAME'),
'password' => env('CONNEKIO_PASSWORD'),
'account_id' => env('CONNEKIO_ACCOUNT_ID'),
'sender_name' => env('CONNEKIO_SENDER_NAME')
],
'infobip' => [
'end_point' => env('INFOBIP_END_POINT'),
'username' => env('INFOBIP_USERNAME'),
'password' => env('INFOBIP_PASSWORD'),
'sender_name' => env('INFOBIP_SENDER_NAME', 'Infobip')
],
'vectory_link' => [
'end_point' => env('VECTORY_LINK_END_POINT'),
'username' => env('VECTORY_LINK_USERNAME'),
'password' => env('VECTORY_LINK_PASSWORD'),
'sender_name' => env('VECTORY_LINK_SENDER_NAME', 'Vectory Link'),
'lang' => env('VECTORY_LINK_LANG', 'E')
],
'gateway_sa' => [
'end_point' => env('GATEWAYSA_END_POINT', 'http://REST.GATEWAY.SA/api/SendSMS'),
'api_id' => env('GATEWAYSA_API_ID'),
'api_password' => env('GATEWAYSA_API_PASSWORD'),
'sms_type' => env('GATEWAYSA_SMS_TYPE', 'T'),
'encoding' => env('GATEWAYSA_ENCODING', 'T'),
'sender_id' => env('GATEWAYSA_SENDER_ID'),
'templateid' => env('GATEWAYSA_TEMPLATE_ID'),
],
],
/*
|--------------------------------------------------------------------------
| Class Maps
|--------------------------------------------------------------------------
|
|
| This is a list of Classes that maps to the Drivers above.
*/
'map' => [
'vodafone' => VodafoneDriver::class,
'connekio' => ConnekioDriver::class,
'infobip' => InfobipDriver::class,
'vectory_link' => VectoryLinkDriver::class,
'gateway_sa' => GatewaySA::class
],
];