PHPackages                             garethellis/hamcrest-matchers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. garethellis/hamcrest-matchers

ActiveLibrary[Testing &amp; Quality](/categories/testing)

garethellis/hamcrest-matchers
=============================

A set of custom Hamcrest matchers

4.0.0(1y ago)26.8k1MITPHPPHP 8.1.\* || 8.2.\* || 8.3.\*CI passing

Since Mar 15Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/garethellis36/hamcrest-matchers)[ Packagist](https://packagist.org/packages/garethellis/hamcrest-matchers)[ RSS](/packages/garethellis-hamcrest-matchers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (18)Used By (0)

A simple collection of custom Hamcrest matchers for use with `hamcrest/hamcrest-php`.

[![Code Climate](https://camo.githubusercontent.com/21fd222a58be1cf249f1eb11aaf652e5bf97052ea1659cb8d6cd396a60957d67/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f676172657468656c6c697333362f68616d63726573742d6d617463686572732f6261646765732f6770612e737667)](https://codeclimate.com/github/garethellis36/hamcrest-matchers)

Installation
============

[](#installation)

Install with composer:

`composer require --dev garethellis/hamcrest-matchers`

Matchers
--------

[](#matchers)

### UUID matcher

[](#uuid-matcher)

Matches a valid [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). Example usage:

```
