mll-lab/php-utils
A lightweight collection of PHP utility helpers from MLL Lab, offering convenient functions for arrays, strings, and common type checks. Framework-agnostic and easy to drop into any project to fill gaps in PHP's standard library.
rules.neon, helper utilities). For a PM, it's the cheapest mechanism to make code-quality expectations enforceable in CI rather than aspirational in a wiki.spaze/phpstan-disallowed-calls ^2, requires ^4.4). This is not a user-facing feature, but it consumes engineering capacity and can block pipelines. PMs should treat tooling-major upgrades as scheduled maintenance items with an owner and a date, not as background noise.CarbonImmutable via PHPStan, #80) removes a recurring review argument and prevents a class of date/time bugs from being reintroduced. That is a measurable reduction in review churn and a faster ramp for new engineers.spaze ^4.4 requires phpstan ^1.12.6, which conflicts with larastan 1.0.4 (phpstan <1.9). This forces a product-adjacent decision: keep PHP 8.0 in the support matrix and lose the rule set there, or drop PHP 8.0 and gain uniform enforcement. That's a support-policy call with customer-facing consequences if any deployment target is still on 8.0.CarbonImmutable ban and future rules won't apply to that lane.phpstan.neon and a short style guide suffice — the coordination overhead of a shared package outweighs the benefit.For executives: This is infrastructure for code quality, not a product feature. It lets us define rules once — including a new rule preventing a date/time class we've had bugs with — and have every repository enforce them automatically in CI. The cost is a one-time major upgrade this cycle; the return is fewer defects, less review back-and-forth, and a defensible answer to "how do you enforce standards?" The main decision requested is a support-policy call: whether to keep PHP 8.0 in our matrix, since the new static-analysis dependency can't coexist with our older Larastan version on 8.0.
For engineering: v7.0.0 is breaking — bump spaze/phpstan-disallowed-calls to ^4.4 and confirm your PHPStan/Larastan pairing before upgrading. Rule inclusion is now keyed on whether spaze is installed, not on PHP version, so CI lanes without it behave predictably. Payoff: CarbonImmutable is now banned via PHPStan (#80), closing a recurring class of inconsistency. Upgrade path is a dependency bump plus a CI matrix check; expect low code churn and no runtime impact.
Ask: approve the upgrade as a scheduled maintenance item with a named owner, and make an explicit decision on PHP 8.0 support so enforcement isn't silently uneven across repos.
How can I help you explore Laravel packages today?