PHP code example of wyrihaximus / react-psr-3-stdio

1. Go to this page and download the library: Download wyrihaximus/react-psr-3-stdio 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/ */

    

wyrihaximus / react-psr-3-stdio example snippets


$loop = Factory::create(); // ReactPHP event loop
$logger = StdioLogger::create($loop);
$logger->info('log'); // Writes info log to STDOUT

$logger = StdioLogger::create($loop)->withHideLevel(true);

$logger = StdioLogger::create($loop)->withNewLine(true);