PHP code example of digphp / psr3
1. Go to this page and download the library: Download digphp/psr3 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/ */
digphp / psr3 example snippets
php
$logger = new \DigPHP\Psr3\LocalLogger(__DIR__);
$logger->log($level, $message, $context);
$logger->log('alert', '这是一个警告');