ilyatos / parentheses-checker
Validate your string, that consists of only parentheses.
dev-master
2019-06-17 08:17 UTC
Requires
- php: ^7.3
Requires (Dev)
- phpunit/phpunit: ^8.2
This package is auto-updated.
Last update: 2024-04-17 19:18:23 UTC
README
Installation
Install this package via composer using the following command
composer require ilyatos/parentheses-checker
Usage
Use Ilyatos\Parentheses\Checker
class to check your sentence. Check method returns true
on right sequence of parenthesis, otherwise returns false
.
use Ilyatos\Parentheses\Checker; $checker = new Checker(); $checker->check('()()((()))');