The easiest way to build robust parsers in PHP.

0.6.1 2020-12-01 11:25 UTC

This package is auto-updated.

Last update: 2020-12-19 11:16:12 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