PHP code example of peteradeojo / laas-php-sdk

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

    

peteradeojo / laas-php-sdk example snippets


$laas = Laas::getInstance();

$log = new LaasLogDTO();
$log->level = 'info';
$log->message = 'This is a test message';

$response = $laas->sendLog($log);