reblack/staplescheck

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

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

1.0.1 2024-10-15 15:54 UTC

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