mazay98/brackets

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

library created with to check open parentheses to mathematical expression

dev-master 2020-02-29 12:15 UTC

This package is auto-updated.

Last update: 2025-05-29 01:36:51 UTC


README

library created with to check open parentheses to mathematical expression

Usage

create instance object 'parentheses' transfer to string to method isValid, to response you get message to string passed validation or not

use App\Brackets;

$data = '
    ()()())()
    ()()()()
    )))()()(
    ()()()
';
echo (new Brackets())->isValid($data);;

errors

DataIsEmpty - empty attribute data

InvalidArgumentException - the transmitted string has the wrong format