dontdrinkandroot/common
A small utility library with commonly used PHP helpers and extensions, including a PHPStan extension. Intended to provide shared building blocks for projects, with CI and code quality tooling support via SonarCloud badges.
Str::slugify(), Arr::dot(), Collection utilities). Lowers onboarding time for new engineers by standardizing common patterns.Arr:: or Str:: methods) without reinventing the wheel. Ideal for projects already using Laravel’s conventions.Avoid If:
spatie/array-to-xml) instead.Consider If:
*"This package lets us build faster and more reliably by standardizing common PHP/Laravel tasks—like formatting data, validating inputs, or generating slugs—into reusable components. Think of it as ‘Laravel’s Swiss Army knife’ for developers. By adopting this, we:
It’s a low-risk, high-reward investment: minimal upfront cost, immediate productivity gains. We’ll pilot it in [Project X] to validate ROI before scaling."*
*"This is a batteries-included utility belt for Laravel/PHP that solves:
Arr::dot() or Str::camel_case().Arr::pluckRecursive()).Proposal:
sanitizeInput(), flattenArray()).Risk Mitigation:
Arr::groupByRecursive()).Alternatives considered:
Next Steps: Let’s scope a 2-week spike to validate performance and adoption barriers."*
How can I help you explore Laravel packages today?