PHPackages                             costamateus/bracketsmith - 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. costamateus/bracketsmith

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

costamateus/bracketsmith
========================

A lightweight PHP tool that polishes array formatting — keeping your brackets neat and consistent.

v0.1.2(6mo ago)013MITPHPPHP &gt;=8.1

Since Nov 3Pushed 6mo agoCompare

[ Source](https://github.com/CostaMateus/bracketsmith)[ Packagist](https://packagist.org/packages/costamateus/bracketsmith)[ RSS](/packages/costamateus-bracketsmith/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

🧰 BracketSmith
==============

[](#-bracketsmith)

**BracketSmith** is a lightweight PHP tool for standardizing array spacing — keeping your square brackets `[ ]` clean and consistent.

---

🚀 Installations
---------------

[](#-installations)

```
composer require costamateus/bracketsmith
```

Or for global use:

```
composer global require costamateus/bracketsmith
```

---

💡 CLI usage
-----------

[](#-cli-usage)

```
vendor/bin/bracketsmith --dry-run
```

Optional parameters:

- `--dry-run` → only checks, without altering files.
- `--verbose` → shows processed files.
- `--help` → displays help information.
- It is possible to pass specific files or directories: ```
    vendor/bin/bracketsmith app/Models/User.php    # Process single file
    vendor/bin/bracketsmith app/Models/            # Process directory
    ```

---

⚙️ Configuration
----------------

[](#️-configuration)

You can customize which directories and files to process by creating a `bracketsmith.json` file in your project root.

Example `bracketsmith.json`:

```
{
	"include": ["app/", "routes/"],
	"exclude": ["vendor/", "storage/", "node_modules/"]
}
```

- `include`: Array of directories/files to process (relative paths or patterns).
- `exclude`: Array of patterns to skip (substrings in file paths).

If no config file is found, default include and exclude patterns are used.

Copy `bracketsmith.json.example` to get started.

---

🧪 Tests
-------

[](#-tests)

```
composer test
```

---

📄 License
---------

[](#-license)

MIT © [Mateus Costa](https://github.com/costamateus)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance68

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Total

3

Last Release

188d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34cfeaf003368fd9f75d0d147c3940ac6b31321b899840d025ece79bacdb0933?d=identicon)[CostaMateus](/maintainers/CostaMateus)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/costamateus-bracketsmith/health.svg)

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

PHPackages © 2026

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