Download the PHP package shumik/bracket-checker without Composer
On this page you can find all versions of the php package shumik/bracket-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download shumik/bracket-checker
More information about shumik/bracket-checker
Files in shumik/bracket-checker
Download shumik/bracket-checker
More information about shumik/bracket-checker
Files in shumik/bracket-checker
Vendor shumik
Package bracket-checker
Short Description Check string for correct brackets opening/closing
License MIT
Package bracket-checker
Short Description Check string for correct brackets opening/closing
License MIT
Please rate this library. Is it a good library?
Informations about the package bracket-checker
Library for checking valid brackets depth in string.
Install:
composer require shumik/bracket-checker
Example:
use \BracketChecker\BracketChecker;
require_once 'vendor/autoload.php';
$checker = new BracketChecker();
$checker->setString("()()(()(()())))");
try {
echo $checker->check() ? 'valid string' : 'invalid string';
} catch (InvalidArgumentException $e) {
echo 'Invalid string format';
}
Tests:
vendor/bin/phpunit --bootstrap vendor/autoload.php vendor/shumik/bracket-checker/tests/BracketCheckerTest.php
All versions of bracket-checker with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package shumik/bracket-checker contains the following files
Loading the files please wait ....