@@ -70,7 +70,7 @@ return [
7070 * live or test
7171 *
7272 */
73- 'mode' => 'test',
73+ 'mode' => 'live', // test mode has been removed, the user must buy testing credit on the platform
7474
7575 /**
7676 * Public Key
@@ -81,6 +81,20 @@ return [
8181];
8282```
8383
84+ ## Lumen Configuration
85+ - Open your bootstrap/app.php
86+ - Register your service provider
87+ - Add your Facade
88+ - Register the config
89+
90+ ``` php
91+ $app->register(Mujhtech\SendChamp\SendChampServiceProvider::class);
92+ $app->withFacades(true, [
93+ SendChamp::class => 'SendChamp',
94+ ]);
95+ $app->configure('sendchamp');
96+ ```
97+
8498## Usage
8599
86100Open your .env file and add your api key like so:
@@ -236,14 +250,14 @@ sendchamp()->sendWhatsappOtp($template_code, $message, $sender_number, $recipien
236250/**
237251 * Send otp message
238252 * @param string $channel
239- * @param string $token_type
240- * @param int $token_length
241- * The length of the token you want to send to your customer. Minimum is 4
253+ * @param string $token_type // numeric or alphanumeric
254+ * @param int $token_length
255+ * The length of the token you want to send to your customer. Minimum is 5
242256 * @param int $expiry_day
243- * How long you want to the to be active for in minutes. (E.g 10 means 10 minutes )
257+ * How long you want to the to be active for in minutes. (E.g. 10 means 10 minutes )
244258 * @param string $customer_email
245259 * @param string $customer_mobile_number
246- * @param array $meta_data
260+ * @param array $meta_data can be empty but you need to pass array like ['data' => []]
247261 * @param string $sender
248262 * Specify the sender you want to use. This is important
249263 * when using SMS OR Whatsapp Channel or we will select a
@@ -276,6 +290,9 @@ sendchamp()->confirmOtp($reference, $otp);
276290
277291```
278292
293+ ## Code Quality
294+ - Run ` vendor/bin/pint `
295+
279296## License
280297
281298The MIT License (MIT). Please see [ License File] ( LICENSE.md ) for more information.
0 commit comments