PHP Package: coduo/php-matcher

PHP library for advanced pattern matching and data comparison in unit tests and functional tests.

Current Version: 6.0.17
Last Updated: 2024-12-20
PHP Requirement: >=7.1
Dependencies: phpunit/phpunit, symfony/yaml
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

PHP Matcher is a versatile library for pattern matching and data comparison in PHP unit tests and functional tests. It provides a wide range of matchers and assertions to validate complex data structures with ease. With PHP Matcher, you can streamline your testing workflow and ensure the accuracy of your application's output.

🔗 View on GitHub

Download Latest Version: 6.0.17

Download Download v6.0.17

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/coduo/php-matcher/6.0.17/autoload.php';

use Coduo\PHPMatcher\PHPMatcher;
use Coduo\PHPMatcher\Matcher\ChainMatcher;
use Coduo\PHPMatcher\Matcher\TypeMatcher;
use Coduo\PHPMatcher\Matcher\CallbackMatcher;
use Coduo\PHPMatcher\Matcher\ExpressionMatcher;
use PHPUnit_Framework_TestCase;
use Symfony\Component\Yaml\Yaml;


$obj = new Coduo\PHPMatcher\PHPMatcher();
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.