PHP code example of lemontech / lemonlog-client
1. Go to this page and download the library: Download lemontech/lemonlog-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/ */
lemontech / lemonlog-client example snippets
Lemontech\Lemonlog\Client\Client;
$account = __DIR__.'/account.json';
$client = new Client([
'application' => 'My Application',
'tenant' => 'International Business inc.',
'account' => $account
]);
$client->setError('warning', "Este es un warning");
$client->setWarning('test', 'Este warning si que es real');
$client->setInfo('invoice_module', 'Se ha creado una factura');