Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Conduit Env Manager Laravel Package

jordanpartridge/conduit-env-manager

Conduit Env Manager is a Laravel package for working with .env files and environment variables, offering a convenient way to read, write, and organize app configuration across environments. Simplify env handling without manual file edits.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit

  • Command-line only surface (env:init, env:set, env:get, env:backup) built on the Laravel console/Artisan pattern. No runtime dependency in the request path, no service provider hooks in the hot path — it sits in the developer-tooling / deploy-scripting layer.
  • Fits any Laravel app that follows the standard single-.env-per-environment convention. It is a file manipulation utility, not a secrets manager: it does not encrypt, does not broker credentials, and does not reconcile with a vault.
  • Explicit overlap risk with existing secrets infrastructure (Vault, AWS Secrets Manager, Doppler, 1Password CLI). If the org already has a secrets source of truth, this package should be scoped to local dev and CI bootstrap only, or it becomes a shadow secrets store.

Integration feasibility

  • Two install paths: composer require jordanpartridge/conduit-env-manager (standalone) and conduit components install env-manager (author's component ecosystem). The Composer path should be treated as the default; the Conduit path introduces a second toolchain and a wrapper dependency that needs its own review.
  • Footprint is small and reversible — a bad experience is a composer remove, not an architectural commitment. That lowers the cost of a time-boxed spike.
  • Version constraints (PHP and Laravel ranges) are not stated in the release notes and must be verified before anything else.

Technical risk

  • Backup files contain plaintext secrets. env:backup --name before-deploy writes a timestamped copy of .env to disk. If that path is inside the repo and not gitignored by default, the first git add -A after a backup commits production credentials. This is the single highest-impact risk in the release and is not addressed in the notes.
  • Redaction is output-layer only and heuristic. "Auto-hides values containing PASSWORD, SECRET, KEY, TOKEN" is name-pattern matching. Variables like MAIL_HOST, STRIPE_ACCT, AWS_ACCT_ID, or proprietary names will pass through unredacted into terminal scrollback and CI logs. Confirm redaction also applies to --json output and to error/exception messages, not just the happy-path table.
  • Unproven in production. v1.x was a stub, so v2.0.0 is functionally a first release. "Production-ready with comprehensive testing" is a claim, not a track record. The generated-with-Claude-Code provenance is not disqualifying but reinforces the need for independent verification of edge cases.
  • Single-maintainer / ecosystem-specific. Bus factor of one, plus a bespoke component distribution channel. Treat as a dependency with an exit plan.
  • Direct .env mutation. No dry-run or atomic-write guarantee is mentioned. Concurrent CI jobs writing the same .env, or an interrupted write, can leave a truncated config that fails at deploy time rather than at write time.

Key questions

  1. Where does env:backup write by default, is that path gitignored out of the box, and what is the retention/cleanup story? Is there a --path override to force backups outside the workspace?
  2. Are redaction rules configurable (allowlist/denylist), and does redaction apply to --json, env:get <name>, and error output?
  3. Is the .env write atomic (temp file + rename)? Is there a --dry-run and a confirmation gate for --all bulk operations?
  4. What PHP and Laravel versions are supported, and is the package tested against the oldest and newest in that range?
  5. Is the Conduit component system required for any functionality, or is the Composer install fully standalone?
  6. What is the security disclosure process, release cadence, and is there a second maintainer?

Integration Approach

Stack fit

  • Suitable for: local dev onboarding (env:init from a template), CI bootstrap of throwaway .env files, and pre-deploy snapshotting in deploy scripts.
  • Not suitable for: production secret storage, multi-tenant credential distribution, or any environment where .env is not the source of truth.
  • --json, --no-interaction, --all, and consistent exit codes are the right primitives for pipeline use; this is the strongest part of the release and the main reason to adopt it.

Migration path

  • Effectively greenfield. v1.x was a stub with no working commands, so there is no functional behavior to migrate and no data to convert.
  • The "complete command restructure" breaking change is low-impact unless another package in the Conduit suite or an internal script references v1 command signatures. Audit for that before assuming zero blast radius.
  • No rollback obligation on adoption; keep the removal commit handy.

Compatibility

  • Verify the PHP/Laravel support matrix against the oldest framework version still in the fleet — CI tooling packages often lag on older LTS lines.
  • Confirm whether commands register as artisan env:*, as conduit env:*, or both. Mixed invocation styles across the org create documentation drift.
  • Test value escaping: values containing spaces, #, =, quotes, and $ are the classic .env corruption cases and the most likely source of "silent wrong value" bugs.

Sequencing

  1. Spike (1–2 days, one engineer): install in a disposable app, run all four commands, inspect backup file location/permissions/gitignore behavior, and diff the resulting .env against expectations for tricky values.
  2. Local dev pilot: roll out env:init and env:set to one or two repos, read-only usage in CI.
  3. Read-only CI: use env:get --all --json for assertions and drift checks only. No writes from pipelines yet.
  4. Gated CI writes: enable env:set/env:backup in a single pipeline, with the backup path outside the workspace and excluded from build artifacts.
  5. Standardize: fold into the repo template/scaffolding once the pilot is clean, and document the restore runbook.

Operational Impact

Maintenance

  • Small surface area, but a single-maintainer upstream that ships full rewrites across majors. Pin to an exact version, and assume each major bump is a re-integration task rather than a drop-in upgrade.
  • Have a stated fallback: the command set is thin enough to reimplement in-house in ~a day if the package is abandoned. Say so explicitly rather than relying on it silently.

Support

  • Most inbound questions will be "why did my .env end up like this" — which means the env:backup restore path is the primary support tool and needs a documented, tested runbook before rollout.
  • Documentation burden is otherwise light: one README section plus one example pipeline.

Scaling

  • Negligible runtime cost; it runs a handful of times per change, not per request.
  • Scales cleanly across repos. The scaling risk is concurrency: parallel CI jobs on shared runners writing to a shared .env. Scope writes to per-job workspaces or serialize the step.

Failure modes

  • Secret sprawl via backups — .env copies committed to git or attached as CI artifacts. Highest severity, easiest to prevent, most likely to be forgotten.
  • Unredacted leakage — sensitive-looking variables whose names don't match the keyword list appear in logs. Gives false confidence precisely where the org has stopped double-checking.
  • Truncated/corrupted .env — interrupted write or concurrent access produces a valid-looking but wrong config that only fails at deploy.
  • Quoting/escaping bugs — values silently mangled; app starts with a wrong URL or password and fails downstream, far from the cause.
  • Drift — the tool manages .env only; there is no reconciliation with platform environment variables, so it can create an illusion of consistency that doesn't hold in production.

Ramp-up

  • Low. Half a day for one engineer to validate the spike, roughly an hour of training for the rest of the team, plus a short runbook.
  • The real ramp-up cost is policy, not tooling: decide where this sits relative to the sanctioned secrets solution and write that boundary down before anyone starts scripting with it.

Recommendation: adopt for local dev scaffolding and CI bootstrap with a pinned version, gated write access in pipelines, and backups forced outside the repo. Do not treat it as a production secrets mechanism, and do not adopt the Conduit component channel without separate review.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle