mathiasverraes / parsica
0.6.1
2020-12-01 11:25 UTC
Requires
- php: ^7.4 || ^8.0
- ext-mbstring: *
- cypresslab/php-curry: ^0.5.0
Requires (Dev)
- ext-json: *
- mathiasverraes/uptodocs: dev-main
- phpunit/phpunit: ^9.0
- psr/event-dispatcher: ^1.0
- vimeo/psalm: ^4.1
This package is auto-updated.
Last update: 2021-02-20 10:47:12 UTC
README
在PHP中构建健壮解析器的最简单方法。
composer require mathiasverraes/parsica
文档与API: parsica.verraes.net
<?php $parser = between(char('{'), char('}'), atLeastOne(alphaChar())); $result = $parser->tryString("{Hello}"); echo $result->output(); // Hello
开发
运行composer install
后,运行以下命令以验证一切是否正常工作
composer run phpunit
composer run psalm
composer run uptodocs
# or all of them:
composer run test