You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mathias Verraes
ce1d6819b6
|
2 years ago | |
---|---|---|
.github | 3 years ago | |
benchmarks | 3 years ago | |
docs | 3 years ago | |
src | 3 years ago | |
tests | 3 years ago | |
.editorconfig | 4 years ago | |
.gitignore | 3 years ago | |
CHANGELOG.md | 4 years ago | |
CODE_OF_CONDUCT.md | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 2 years ago | |
TODO.md | 3 years ago | |
composer.json | 3 years ago | |
infection.json | 4 years ago | |
phpbench.json | 3 years ago | |
phpunit.xml | 4 years ago | |
psalm.xml | 4 years ago |
README.md
Parsica
The easiest way to build robust parsers in PHP.
composer require parsica-php/parsica
Documentation & API: parsica-php.github.io
<?php
$parser = between(char('{'), char('}'), atLeastOne(alphaChar()));
$result = $parser->tryString("{Hello}");
echo $result->output(); // Hello
Development
After running composer install
, run these to validate if everything is in working order:
composer run phpunit
composer run psalm
composer run uptodocs
# or all of them:
composer run test
Maintainer
Regrettably, the maintainer of this library (@turanct) has passed away in December 2021 due to cancer. At the moment, there is no maintainer. Contact @mathiasverraes if you're interested in working on this project.