PHP code example of cxj / laravel-looking-glass-client

1. Go to this page and download the library: Download cxj/laravel-looking-glass-client 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/ */

    

cxj / laravel-looking-glass-client example snippets


return [
    'url'    => env('LOOKING_GLASS_URL', 'localhost:8000/api/webhook'),
    'secret' => env('LOOKING_GLASS_SECRET', 'shared-secret'),
];

$result = Cxj\Result::make('Test message from your application');

$glass = new Cxj\LookingGlass();
$glass->transmit('Name of Test or Status', $result);
bash
php artisan vendor:publish --tag="laravel-looking-glass-client-config"