The easiest way to build robust parsers in PHP.

0.5.2 2020-09-14 21:26 UTC

This package is auto-updated.

Last update: 2020-10-17 08:06:02 UTC


README

The easiest way to build robust parsers in PHP.

composer require mathiasverraes/parsica

Documentation & API: parsica.verraes.net

<?php
$parser = between(char('{'), char('}'), atLeastOne(alphaChar()));
$result = $parser->tryString("{Hello}");
echo $result->output(); // Hello

Twitter Follow Test status