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

Composer Stager Laravel Package

php-tuf/composer-stager

A PHP library for staging Composer operations in a separate directory before applying them to your project, enabling safer dependency updates, rollback, and testable deployments without touching your active codebase.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Production-safe dependency changes: Decides whether composer require/update/remove can run directly against a live codebase or must be staged into an isolated working copy first. Composer Stager executes the operation in a temp directory and only syncs the diff back once the command succeeds, so a failed resolve or network drop never leaves production half-updated.
  • Build vs. buy for zero-downtime deploys: If your roadmap includes in-place dependency updates on production (common for Drupal, WordPress, and other "composer-on-the-server" CMS platforms), this replaces bespoke rsync/backup/rollback scripts with a library that already models "stage → verify → activate."
  • Rollback/SLA commitments: Supports decisions about whether you can promise atomic dependency upgrades. The stager gives you a natural transaction boundary — if activation is interrupted, the live tree is untouched.
  • Supply-chain security posture: Part of the php-tuf ecosystem (The Update Framework), it fits a roadmap that ties deployment safety to signing/verification. Relevant if you're evaluating SLSA/TUF-style guarantees for the release pipeline.
  • Feature scope: Informs whether to build an in-product auto-updater (plugin/theme/core updates) rather than depending on manual SSH + composer update steps that customers or support engineers run by hand.
  • Evaluation caveat: 17 stars and zero dependents mean this is a low-signal adoption decision; treat it as a "build a spike" input, not a default dependency.

When to Consider This Package

Consider it when:

  • You must run Composer operations on a live/self-hosted production filesystem (e.g., customer-managed CMS installs) rather than in a CI-built artifact deployed by a release pipeline.
  • You need atomicity: all-or-nothing activation of dependency changes, with the live codebase remaining intact on failure.
  • You're building an updater UI or CLI inside a product and want a vetted primitive rather than hand-rolling staging directories.
  • You want the operation to be programmatically orchestrated (queue jobs, admin-triggered updates) with a clean API instead of shelling out and hoping.

Look elsewhere when:

  • You already deploy immutable artifacts (Docker images, release tarballs). The problem this solves is largely absent — standard CI + blue/green covers it.
  • You need a mature, widely adopted library. 17 stars, 0 dependents is an adoption risk; budget for vendor lock-in and a fallback if the maintainer goes quiet.
  • Your team needs extensive documentation, community support, or guarantees only earned through production use at scale.
  • The production environment is ephemeral or read-only, where "staging then activating" adds complexity without payoff.

How to Pitch It (Stakeholders)

To executives: This package lets us safely update dependencies on live customer environments without the "did the update break the site?" risk that currently forces maintenance windows or manual rollbacks. It turns a fragile operational procedure into a repeatable, reversible one — directly reducing downtime incidents and support cost. The trade-off is that it's an early-stage, low-adoption open-source library, so I'd recommend a time-boxed proof of concept before committing it to the critical path.

To engineering: Composer Stager runs composer commands against a staged copy and only syncs the resulting diff to production on success, so failures are non-destructive by construction. It's MIT-licensed, part of the php-tuf family, and API-driven — suitable for wrapping in a job/queue for customer-facing update flows. We'd need to accept the maturity risk (few stars, no dependents) and pin a version plus own the rollback path. I'd frame the ask as: validate it on one updater workflow, measure failure handling, then decide whether to build on it or replicate the pattern in-house.

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.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource