pluswerk/grumphp-bom-task
GrumPHP task that enforces files to be saved without a UTF-8 BOM. Install via Composer and enable the PLUS\GrumPHPBomTask\ExtensionLoader, then run the plus_bom_fixer task on selected file types (php, css, json, yml, etc.).
composer.json, package.json, or config files).Adopt if:
UTF-8 BOM errors in logs, API responses, or database imports).Look elsewhere if:
For Executives: "This is a 5-minute fix to eliminate a recurring technical debt source—UTF-8 BOMs in text files cause deployment failures, API errors, and support tickets. By integrating this lightweight GrumPHP task, we’ll automatically block problematic files before they reach production, saving hundreds of hours annually in debugging and incident response. It’s a no-code solution with zero runtime overhead, aligning with our quality and DX goals while requiring no additional tooling beyond our existing GrumPHP setup."
For Engineering/DevOps: *"We’re adding a pre-commit/pre-push check to detect and reject files with UTF-8 BOMs, targeting:
composer.json, package.json, .env, config/*.php, and SQL migrations.grumphp.yml and composer.json.For Developers:
*"Tired of UTF-8 BOM errors breaking your local setup or CI? This adds a 1-line GrumPHP task to block files with BOMs before you commit or push. It:
composer require --dev pluswerk/grumphp-bom-taskgrumphp.yml (takes 2 minutes)..grumphp.yml under plus_bom_fixer.ignore."*How can I help you explore Laravel packages today?