PHP Package: colinodell/psr-testlogger
A PHP library for testing PSR-3 loggers with ease using PHPUnit assertions and mocks.
Package Description
PSR-TestLogger is a versatile PHP library designed to simplify the testing of PSR-3 compliant loggers. It provides a set of PHPUnit assertions and mocks to streamline the process of verifying log messages, levels, and contexts. By integrating seamlessly with existing test suites, PSR-TestLogger enhances the reliability and accuracy of log-related unit tests, ensuring robust logging functionality in PHP applications.
Download Latest Version: 1.3.0

Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/colinodell/psr-testlogger/1.3.0/autoload.php';
use ColinODell\PsrTestLogger\PsrTestLogger;
use ColinODell\PsrTestLogger\PsrTestLoggerAssertions;
use ColinODell\PsrTestLogger\PsrTestLoggerMock;
use Psr\Log\AbstractLogger;
use PHPUnit\Framework\TestCase;
$obj = new ColinODell\PsrTestLogger\PsrTestLogger();
echo "✅ Example created successfully.";
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.