shipmonk/coding-standard
ShipMonk’s PHP_CodeSniffer ruleset for consistent PHP style across ShipMonk packages. Install via Composer, add a phpcs.xml.dist pointing to ShipMonkCodingStandard, then run phpcs to check and phpcbf to auto-fix issues.
slevomat/coding-standard).slevomat/coding-standard or PSR-12.slevomat/coding-standard or phpcs defaults instead).PHP_CodeSniffer plugins or psalm for advanced static analysis).rector for incremental adoption).For Executives: "This package lets us enforce ShipMonk’s proven PHP/Laravel coding standards with minimal overhead—no reinventing the wheel. It’s like a ‘style guide’ for our codebase, reducing bugs and speeding up reviews. For example, it’ll catch inconsistencies in how we handle Laravel’s dependency injection or error logging, which saves time in production. It’s a low-cost way to future-proof our code quality as we scale."
For Engineering:
*"This is ShipMonk’s battle-tested phpcs ruleset, tailored for their Laravel packages. It’s a drop-in replacement for slevomat/coding-standard but with ShipMonk-specific tweaks (e.g., how they structure service containers or handle API responses). We can:
composer.json and configure phpcs.xml.dist."*For Developers: *"Think of this as ‘ShipMonk’s way’ of writing PHP/Laravel code, automated. It’ll flag things like:
getUser() vs fetchUser()).vendor/bin/phpcs locally before pushing, and it’ll catch 80% of ‘nitpicks’ your PR reviewer would otherwise mention. The phpcbf command even auto-fixes some issues!"*How can I help you explore Laravel packages today?