1. Go to this page and download the library: Download boserup/laravel-time-weaver 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/ */
boserup / laravel-time-weaver example snippets
return [
// Other configuration options...
'logger' => \Your\Custom\Logger\CustomLogger::class,
// Other configuration options...
];
namespace Your\Custom\Logger;
use Boserup\LaravelTimeWeaver\Contracts\LoggerContract;
class CustomLogger implements LoggerContract
{
public function log(string $hostname, float $time): void
{
// Logic goes here...
}
}