Matcher is simple php library created to match values against patterns. It's mostly used for API's functional tests where JSON response needs to be compared against pattern with some placeholders.
This website is a sandbox for the library, give it a try: