rtoledof / analizer
The code analizer process the log to manage the logs from remote resource.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/rtoledof/analizer
Requires
- php: 7.3.*
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2025-12-20 22:57:19 UTC
README
How to use it?
Install the package using composer.
composer require rtoledof/analizer
Once the package it's installed via composer initialize the logger. It requires the logger what is an interface that it should be implemented named ILogger and later on call the functions.
$logger = new LoggerTest(); $analyzer = new \Rtoledof\Analyzer\Analyzer($logger) $analyzer->analyze(new DateTime());
The analyzer has 3 method.
- read: Return the logs in the given date.
- store: Store a new log entry on the logger.
- analyze: Remove the logs older that the given date.