reblack / staplescheck
Check staples in string
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/reblack/staplescheck
Requires (Dev)
- phpunit/phpunit: ^11.3
This package is auto-updated.
Last update: 2026-01-15 19:26:23 UTC
README
This library tests a string with staples
correct symbols
\n \t \r space , ( )
if any other symbol is encountered, it will be throws InvalidArgumentException
Examples:
(new \Staplescheck\Validator('(())\n\t()()'))->isValid(); //true
(new \Staplescheck\Validator('(())('))->isValid(); //false
(new \Staplescheck\Validator('(())(ssdfjkldsf444)'))->isValid(); //false