The preferred way to install this extension is through composer:
composer require fedchishina/math-example-lib
This package based on PHP. Library can check the correctness of the brackets sentence.
use MathExampleLib\Functions\BracketCounter;
// tests
echo BracketCounter::isCorrectExample('()'); //true
echo BracketCounter::isCorrectExample('(())'); //true
echo BracketCounter::isCorrectExample('('); //false
echo BracketCounter::isCorrectExample('())'); //false
The MIT License (MIT). Please see License File for more information.