reblack/staplescheck

There is no license information available for the latest version (1.0.1) of this package.

Check staples in string

1.0.1 2024-10-15 15:54 UTC

This package is auto-updated.

Last update: 2025-07-15 18:33:29 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