<commit_before># PHP Matcher

Library created for testing all kinds of JSON/XML/TXT/Scalar values against patterns.

API: 

```php
PHPMatcher::match($value = '{"foo": "bar"}', $pattern = '{"foo": "@string@"}') : bool;
PHPMatcher::backtrace() : Backtrace;
PHPMatcher::error() : ?string;
```

It was built to simplify API's functional testing.

* [![Build Status](https://travis-ci.org/coduo/php-matcher.svg)](https://travis-ci.org/coduo/php-matcher) - [4.0 (master) README](https://github.com/coduo/php-matcher/tree/master/README.md)  PHP >= 7.2<commit_msg>Added 4.0 version to README<commit_after># PHP Matcher

Library created for testing all kinds of JSON/XML/TXT/Scalar values against patterns.

API: 

```php
PHPMatcher::match($value = '{"foo": "bar"}', $pattern = '{"foo": "@string@"}') : bool;
PHPMatcher::backtrace() : Backtrace;
PHPMatcher::error() : ?string;
```

It was built to simplify API's functional testing.

* [![Build Status](https://travis-ci.org/coduo/php-matcher.svg)](https://travis-ci.org/coduo/php-matcher) - [5.0 (master) README](https://github.com/coduo/php-matcher/tree/master/README.md)  PHP >= 7.2
* [![Build Status](https://travis-ci.org/coduo/php-matcher.svg?branch=4.0)](https://travis-ci.org/coduo/php-matcher) - [4.0 (master) README](https://github.com/coduo/php-matcher/tree/4.0/README.md)  PHP >= 7.2
{'fraction_non_alphanumeric': 0.20508982035928144, 'fraction_numerical': 0.01347305389221557, 'mean_word_length': 4.889867841409692, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '695048', 'n_tokens_mistral': 498, 'n_tokens_neox': 498, 'n_words': 94}