PHP code example of offers / rho
1. Go to this page and download the library: Download offers/rho 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/ */
offers / rho example snippets
// clone the logger to modify it w/o affecting the original
$myLogger = clone $logger;
$myLogger->pushProcessor(function ($record) {
$record['extra']['client'] = 'My Client Name';
return $record;
});
Rho\Retrier::wrap($client, ['logger' => $myLogger]);