costamateus / bracketsmith
A lightweight PHP tool that polishes array formatting โ keeping your brackets neat and consistent.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/costamateus/bracketsmith
Requires
- php: >=8.1
README
BracketSmith is a lightweight PHP tool for standardizing array spacing โ keeping your square brackets [ ] clean and consistent.
๐ Installations
composer require costamateus/bracketsmith
Or for global use:
composer global require costamateus/bracketsmith
๐ก 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
๐งช Tests
composer test
๐ License
MIT ยฉ Mateus Costa