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.
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.composer update steps that customers or support engineers run by hand.Consider it when:
Look elsewhere when:
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.
How can I help you explore Laravel packages today?