承接 costamateus/bracketsmith 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

costamateus/bracketsmith

最新稳定版本:v0.1.2

Composer 安装命令:

composer require costamateus/bracketsmith

包简介

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

README 文档

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

⚙️ 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

composer test

📄 License

MIT © Mateus Costa

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-03