PHPackages                             petrwl/parentheses - 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. petrwl/parentheses

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

petrwl/parentheses
==================

Check balance parentheses

121PHP

Since Jan 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/petrwl/parentheses)[ Packagist](https://packagist.org/packages/petrwl/parentheses)[ RSS](/packages/petrwl-parentheses/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Parentheses
===========

[](#parentheses)

Библиотека для провекри корректности открытия-закрытия скобок

Установка
---------

[](#установка)

В файл `composer.json` добавить строки:

```
{
    "require": {
        "petrwl/parentheses": "*"
    }
}
```

Пример:
-------

[](#пример)

```
$string = '(((( )))  )';
$Parentheses = new \Parentheses\Parentheses($string);
if ($Parentheses->isBalanced()) {
    print 'String have balanced parentheses';
} else {
    print 'String have not balances parentheses';
}
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/998005d42fc8ba17c6e053471b97adbe5682f772a1b157455136e1b650d7165a?d=identicon)[petrwl](/maintainers/petrwl)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/petrwl-parentheses/health.svg)

```
[![Health](https://phpackages.com/badges/petrwl-parentheses/health.svg)](https://phpackages.com/packages/petrwl-parentheses)
```

PHPackages © 2026

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