PHP code example of ridgeben / smart-chatbot

1. Go to this page and download the library: Download ridgeben/smart-chatbot 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/ */

    

ridgeben / smart-chatbot example snippets


'sources' => [
    [
        'source_type' => 'project',
        'table' => 'projects',
        'primary_key' => 'id',
        'title_column' => 'project_title',

        'searchable_columns' => [
            'project_title',
            'project_slug',
            'short_description',
            'project_description',
        ],

        'context_columns' => [
            'project_title' => 'Project Name',
            'short_description' => 'Short Description',
            'project_description' => 'Project Description',
        ],

        'active_column' => 'status',
        'active_value' => 1,
    ],
],

Schema::getColumnListing('your_table_name');
bash
php artisan smart-chatbot:install
bash
composer 
powershell
composer 
powershell
composer 
text
resources/views/app.blade.php
resources/views/layouts/app.blade.php
resources/views/layouts/master.blade.php
resources/views/layouts/frontend.blade.php
text
config/smart-chatbot.php
bash
php artisan optimize:clear
bash
php artisan list | findstr smart-chatbot
bash
php artisan list | grep smart-chatbot
bash
php artisan route:list
text
POST smart-chatbot/ask
bash
php artisan serve
bash
php artisan smart-chatbot:install
bash
composer dump-autoload
php artisan package:discover
php artisan optimize:clear
bash
php artisan list | findstr smart-chatbot
bash
php artisan optimize:clear
text
config/smart-chatbot.php
bash
php artisan tinker
text
C:\Program Files\php-8.3\php.ini
ini
;extension=exif
ini
extension=exif
bash
composer update ridgeben/smart-chatbot
php artisan optimize:clear