othercode/laravel-version
A small Laravel package for managing and displaying your application's version information. Use it to keep a single version source, expose the current version in your app, and reference it from config, views, or health and about endpoints.
Architecture fit
config('app.version') or a single VERSION file read is sufficient.VERSION file in released tarballs. That is a real, recurring problem in multi-environment release pipelines.Integration feasibility
composer.json for illuminate/support constraints and PHP floor before committing..git, so a git-tag adapter must have a documented fallback and a clear failure message.Technical risk
Key questions
dev-main?.git is absent or git is not installed?resolve() call hit the filesystem or spawn a process?php artisan config:cache and optimize?Stack fit
.git stripped and no env var injection discipline — the git and file adapters will be dead weight, leaving only env/config, which a one-line config entry already covers.Migration path
app.version config key or a helper) so call sites do not change and rollback is a config revert.Compatibility
composer.json constraint matrix against the target Laravel version before merge; this is the single most likely blocker and it is a five-minute check.Sequencing
Maintenance
dev-main for something that stamps your release identifiers.Support
Scaling
git describe subprocess per request would be a genuine performance defect.Failure modes
VERSION absent from a container build. Symptoms: exception or empty version in logs. Mitigation: explicit fallback chain plus a startup assertion..git stripped or binary absent in slim base images — the most likely real-world failure. Mitigation: never make git the sole production source; treat it as build-time only.config:cache. Mitigation: standard deploy-time cache rebuild, already typical.Ramp-up
TPM summary: Low technical risk in isolation, moderate supply-chain risk from the provenance profile (0 stars, 0 dependents, single maintainer). Worth a half-day spike if the multi-source version problem is genuinely present; not worth adopting as a general-purpose dependency for a problem a single config key already solves. Gate adoption on the containerized-environment test and on confirming Laravel/PHP constraint compatibility.
How can I help you explore Laravel packages today?