parsica-php / parsica

在PHP中构建强大解析器的最简单方法。

资助包维护!
turanct

0.8.1 2021-04-10 12:58 UTC

README

Tests

在PHP中构建强大解析器的最简单方法。

composer require parsica-php/parsica

文档与API: parsica-php.github.io

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

Twitter Follow

项目状态

遗憾的是,此库的维护者(@turanct)于2021年12月因癌症去世。目前没有维护者。如果您想为此库做出贡献,或者您想使用此库进行项目并需要咨询,请联系原作者Mathias Verraes,邮箱 mathias at verraes net。

开发

在运行composer install之后,运行以下命令以验证一切是否正常工作

composer run phpunit
composer run psalm
composer run uptodocs

# or all of them:

composer run test