PHP code example of vertexinvo / support-widget
1. Go to this page and download the library: Download vertexinvo/support-widget 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/ */
vertexinvo / support-widget example snippets
return [
/*
|--------------------------------------------------------------------------
| Enable Widget
|--------------------------------------------------------------------------
*/
'enabled' => true,
/*
|--------------------------------------------------------------------------
| API Key
|--------------------------------------------------------------------------
*/
'api_key' => env('VERTEX_SUPPORT_API_KEY'),
/*
|--------------------------------------------------------------------------
| SSO Endpoint
|--------------------------------------------------------------------------
*/
'endpoint' => 'https://support.vertexinvo.com/api/v1/sso',
/*
|--------------------------------------------------------------------------
| Widget Position
|--------------------------------------------------------------------------
|
| Available:
| bottom-right
| bottom-left
|
*/
'position' => 'bottom-right',
/*
|--------------------------------------------------------------------------
| Widget Colors
|--------------------------------------------------------------------------
*/
'button_color' => '#000000',
'icon_color' => '#ffffff',
];
bash
php artisan vendor:publish --tag=vertex-support-config
config/vertex-support.php
bash
php artisan vendor:publish --tag=vertex-support-assets
bash
php artisan optimize:clear