PHP code example of php-kchat / kchat

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

    

php-kchat / kchat example snippets


'paths' => ['api/*', 'sanctum/csrf-cookie', 'widget/*'],
'allowed_origins' => ['http://localhost', 'http://127.0.0.1'],
'allowed_methods' => ['*'],
'allowed_headers' => ['*'],

git clone https://github.com/php-kchat/kchat.git

composer create-project php-kchat/kchat

php artisan key:generate

php artisan migrate