php-extended / php-scorekeeper-logger
This package is abandoned and no longer maintained.
The author suggests using the php-extended/php-scorekeeper-object package instead.
A scorekeeper decorator that logs the score calls.
3.1.16
2021-07-04 22:38 UTC
Requires
- php: >=7.1
- php-extended/php-scorekeeper-interface: ^3
- php-extended/polyfill-php80-stringable: >=1
- psr/log: ^1
Requires (Dev)
README
A scorekeeper decorator that logs the score calls.
Installation
The installation of this library is made via composer.
Download composer.phar
from their website.
Then add to your composer.json :
"require": {
...
"php-extended/php-scorekeeper-logger": "^3"
...
}
Then run php composer.phar update
to install this library.
The autoloading of all classes of this library is made through composer's autoloader.
Basic Usage
This library may be used the following way as a decorator :
use PhpExtended\Scorekeeper\ScorekeeperLogger;
/* @var $oldKeeper \PhpExtended\Scorekeeper\ScorekeeperInterface */
/* @var $logger \Psr\Log\LoggerInterface */
$scorekeeper = new ScorekeeperLogger($oldKeeper, $logger);
License
MIT (See license file).