m1/env
m1/env extends Laravel's environment handling, letting you load and cascade multiple .env files so shared, environment-specific and local values stay separate across local, staging and production setups.
m1/env is a buy-side, drop-in parser for .env files, so a PM can avoid allocating engineering time to a bespoke config reader. Its value is not differentiation — it is reclaimed sprint capacity.phpdotenv is unavailable..env input rather than framework-specific config, and whether to document that contract externally.Adopt only when most of the following hold:
.env values in a small PHP script, CLI, or test harness — not to own the full configuration lifecycle of a large application.export prefixes match your actual .env files.Look elsewhere when:
vlucas/phpdotenv (or the framework's config layer). Adding a second parser creates two sources of truth for the same file — a guaranteed class of production incidents.One-liner (executives): A tiny, free, MIT-licensed utility that lets our PHP code read standard .env configuration files; it is low-cost plumbing that saves a few engineering days, not a platform investment.
For engineering: It brings .env parsing to plain PHP so scripts and libraries can share one configuration convention with the main app. The trade-off is explicit — this project has had no release since February 2020 and effectively no downstream ecosystem. Recommendation: use the framework's existing loader wherever a framework is already present; consider m1/env only for isolated, non-framework tooling, pinned in the lockfile, with a short spike to confirm behavior against our real .env files and PHP versions, and a documented fallback to vlucas/phpdotenv if it breaks.
Risk framing for the go/no-go: the cost of adoption is near zero; the cost of abandonment is also near zero because the interface is trivially swappable. That asymmetry is the entire argument — approve it as a tactical convenience, cap the exposure to non-critical paths, and do not let it become load-bearing for secrets or production configuration.
How can I help you explore Laravel packages today?