PHP code example of ahmedsalah / kenda-communication-plugin

1. Go to this page and download the library: Download ahmedsalah/kenda-communication-plugin 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/ */

    

ahmedsalah / kenda-communication-plugin example snippets


return [

    /* -------------------------------------------------------------------------- */
    /*                                User Resolving */
    /* -------------------------------------------------------------------------- */
    'enable_user_resolving' => true,
    'enable_guest_user' => true,

    'user_model' => 'App\Models\User',
    'user_phone_number_column' => 'phone_number',

    /* -------------------------------------------------------------------------- */
    /*                                Function calls */
    /* -------------------------------------------------------------------------- */

    'functions' => [
        'example_function' => 'App\KendaCommunicationPlugin\Functions\ExampleFunction',
    ],

];

$kendaCommunicationPlugin = new Kenda\KendaCommunicationPlugin();
echo $kendaCommunicationPlugin->echoPhrase('Hello, Kenda!');
bash
php artisan vendor:publish --tag="kenda-communication-plugin-migrations"
bash
php artisan vendor:publish --tag="kenda-communication-plugin-config"