PHP code example of webxscripts / lyra

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

    

webxscripts / lyra example snippets


private Lyra $lyra;

public function __construct(..., Lyra $lyra)
{
    //...,
    $this->lyra = $lyra;
}

public function report(Throwable $e): void
{
    $this->lyra->handle($e, Request::capture());
}
app/Exceptions/Handler.php