PHPackages                             maxvoronov/brackets-checker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. maxvoronov/brackets-checker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

maxvoronov/brackets-checker
===========================

Simple library for brackets checking in strings

1.0.0(8y ago)324MITPHPPHP ^7.0

Since Dec 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/MaxVoronov/brackets-checker)[ Packagist](https://packagist.org/packages/maxvoronov/brackets-checker)[ Docs](https://github.com/maxvoronov/brackets-checker)[ RSS](/packages/maxvoronov-brackets-checker/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Brackets Checker
================

[](#brackets-checker)

[![Latest Version](https://camo.githubusercontent.com/71cdd03041542adf53dce341177cdd51391a41e5fbfe8efc0aab60973e261255/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4d6178566f726f6e6f762f627261636b6574732d636865636b65722e7376673f7374796c653d666c6174)](https://packagist.org/packages/maxvoronov/brackets-checker)[![Software License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/455fe5cb0d91efb63208fc77d383e41692fa47f567f4a5b80b0501d99132c1ff/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4d6178566f726f6e6f762f627261636b6574732d636865636b65722f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/MaxVoronov/brackets-checker)![Codacy grade](https://camo.githubusercontent.com/e62eb99bde431d369599d9e3509cfa9d90e31a59a58593a4bd12a388a589a67e/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f65306337616633613233346534636336386434636338373238313135303830382e7376673f7374796c653d666c6174)

Install
-------

[](#install)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/):

```
composer require maxvoronov/brackets-checker

```

Usage
-----

[](#usage)

This package based on pure PHP. Library can check the correctness of the brackets sentence.

```
use MaxVoronov\BracketsChecker\Checker;

$bracketsChecker = new Checker();
$bracketsChecker->check("(( ))( )");    // Returns true
$bracketsChecker->check("() )");        // Returns false
```

Also you can check custom brackets pairs and available filtering symbols:

```
$brackets = ["(" => ")", "[" => "]", ""];
$availableChars = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "-", "*", "/", " "];

$bracketsChecker = new Checker($brackets, $availableChars);
$bracketsChecker->check("([2 + 3] *  / (9 - 4)))");    // Returns true
```

Testing
-------

[](#testing)

```
composer test

```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~18 days

Total

2

Last Release

3088d ago

Major Versions

0.1.0 → 1.0.02018-01-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5058231?v=4)[Amirax](/maintainers/Amirax)[@amirax](https://github.com/amirax)

---

Top Contributors

[![maxvoronov](https://avatars.githubusercontent.com/u/8292606?v=4)](https://github.com/maxvoronov "maxvoronov (6 commits)")

---

Tags

checkerbracketsotusparenthesishomework

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/maxvoronov-brackets-checker/health.svg)

```
[![Health](https://phpackages.com/badges/maxvoronov-brackets-checker/health.svg)](https://phpackages.com/packages/maxvoronov-brackets-checker)
```

###  Alternatives

[tomzx/php-semver-checker

PHP Semantic Versioning Checker

435237.1k2](/packages/tomzx-php-semver-checker)[copyleaks/php-plagiarism-checker

Copyleaks detects online plagiarism and checks content distribution. Use Copyleaks to find out if textual content is original and where it has been used before. This package shows how to integrate with the Copyleaks cloud to search for copyright infringement.

5069.7k](/packages/copyleaks-php-plagiarism-checker)[nilportugues/php_todo

Looks into the code using a user-defined list of to-do phrases and stops commit if the total amount increased or is above a threshold.

1210.0k](/packages/nilportugues-php-todo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
