PHPackages                             shumik/bracket-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. shumik/bracket-checker

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

shumik/bracket-checker
======================

Check string for correct brackets opening/closing

v1.0.7(8y ago)05231MITPHPPHP &gt;=7.0

Since Jan 27Pushed 7y agoCompare

[ Source](https://github.com/shumik/bracketChecker)[ Packagist](https://packagist.org/packages/shumik/bracket-checker)[ RSS](/packages/shumik-bracket-checker/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (1)

Library for checking valid brackets depth in string.
====================================================

[](#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

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

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 ~12 days

Total

2

Last Release

3062d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shumik-bracket-checker/health.svg)

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

###  Alternatives

[davidwebca/custom-editor-sidebar-width

WordPress plugin to allow users to set their desired Gutenberg sidebar width.

111.2k](/packages/davidwebca-custom-editor-sidebar-width)

PHPackages © 2026

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