PHPackages                             koind/brackets - 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. koind/brackets

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

koind/brackets
==============

A small project for working with brackets

1.0.0(7y ago)215MITPHPPHP ^7.2

Since Jun 14Pushed 7y agoCompare

[ Source](https://github.com/koind/brackets)[ Packagist](https://packagist.org/packages/koind/brackets)[ RSS](/packages/koind-brackets/feed)WikiDiscussions master Synced 3d ago

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

Brackets
========

[](#brackets)

A small project for working with brackets.

Installation
------------

[](#installation)

Run the following command from you terminal:

```
composer require "koind/brackets: ^1.0"
```

or add this to require section in your composer.json file:

```
"koind/brackets": "^1.0"

```

then run `composer update`

Usage
-----

[](#usage)

The library accepts a string of the form:

`(()()()()))((((()()()))(()()()(((()))))))`

And return `true` if the string is correct - all open parentheses are correctly opened and closed, or `false` otherwise.

```
