illegal/laravel-utils
A small collection of helper utilities for Laravel applications, bundling convenient functions and traits for everyday development tasks. Lightweight, easy to install, and designed to drop into any Laravel project without extra configuration.
Sortable trait (a Livewire list-sorting helper), but it does not create an upstream to buy from or a vendor relationship to manage. One release is a data point, not a maintenance commitment — we have no evidence of a cadence, a security contact, or downstream users exercising the code. The MIT license remains the only durable asset: a clean legal path to copy the pieces worth keeping into app/Support or an internal package, with attribution.Sortable-style helpers keep coming up across projects, that is a case for an internal laravel-support package we own with tests and a named owner — not a third-party dependency, and definitely not one whose release history is a single entry.Sortable trait fits this profile well — internal admin tables are exactly the low-blast-radius surface where a vendored helper is fine.Consider it as source material, not a dependency, when:
composer.json constraints actually cover — Livewire is now a real coupling point, not an incidental one, so verify both against our target versions rather than assuming. Note the package's Livewire support is unstated in the release notes; check the constraint before anything else.Sortable trait, not the whole grab bag. Copying a trait and its column allowlist into app/Support is a short job; pulling in a package is a forever job.Look elsewhere when:
Str, Arr, Collection, Number), first-party packages, Livewire's own primitives, and well-maintained community packages (Spatie et al.) cover most of what a utility grab bag offers — with someone else on the hook for maintenance. Livewire sorting in particular has well-trodden implementations we can crib the design from without adopting code.To executives (one paragraph): We re-reviewed a small, free, MIT-licensed Laravel helper library after a new release added a Livewire sorting helper. The new feature is genuinely relevant to us, but it does not change the underlying picture: the project has no demonstrated maintainer cadence, no downstream users, and one recent release after a long gap — so any bug or framework incompatibility becomes ours to fix. Because it is MIT-licensed, we can legally lift the sorting helper into our own codebase in about a day, with tests and an explicit column allowlist. My recommendation is unchanged: approve a short evaluation spike and hold a "no production dependency" position. The upside is small and concrete; the maintenance liability we avoid is open-ended.
To engineering (the ask): Please don't composer require this. Spend a half-day on the new Sortable trait specifically — check its Livewire version constraint, read the sort-input path, and confirm it whitelists columns and directions. If it's sound, vendor it into app/Support with the MIT notice, an attribution header noting the origin and version, an explicit allowlist, and tests covering nulls, related columns, and pagination interaction. If we ever do take it as a dependency, pin to a commit SHA, add it to the tech-debt register with a named owner, and set a reminder to revisit on the next Laravel or Livewire major. Expect the honest outcome to be "one useful idea worth reimplementing, nothing we need to ship."
How can I help you explore Laravel packages today?