PHP code example of ramatimati / waliby

1. Go to this page and download the library: Download ramatimati/waliby library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ramatimati / waliby example snippets


QUEUE_CONNECTION=database

# WALIBY PHONE BOOK PARAMS
WALIBY_PHONE_BOOK_CONNECTION=mysql
WALIBY_PHONE_BOOK=your table or database view
WALIBY_PHONE_NUMBER_COLUMN=
WALIBY_NAME_COLUMN=
WALIBY_COLUMN_CONDITION_NAME_1=NDPOINT_SINGLE_MESSAGE=https://example.com/send
WALIBY_WEBHOOK_MESSAGE_ID_KEY=id
WALIBY_WEBHOOK_STATUS_KEY=status

https://example.com/waliby/templates
https://example.com/waliby/events
https://example.com/waliby/history

https://example.com/waliby/metas

https://example.com/api/waliby/history/stats

use Ramatimati\Waliby\Waliby;

public function test(){
   Waliby::SendMessage($phoneNumber, $messageTemplateName)
}
bash
php artisan queue:table
php artisan migrate
php artisan queue:work
bash 
php artisan migrate
bash
php artisan vendor:publish --tag=Waliby