composer/metadata-minifier
Utility library for Composer 2.x repository metadata. Minifies package version arrays into diffs and expands minified metadata back to the original structure, reducing JSON size and improving transfer efficiency. Includes simple static minify/expand APIs.
composer.lock by minifying metadata, cutting PR churn by 30–50% for teams managing Laravel/PHP projects at scale. Critical for monorepos or multi-team environments where lockfile conflicts slow down releases.source.sha, time fields). Aligns with GitOps practices by ensuring only meaningful changes are committed.composer.lock easier to scan for vulnerabilities via tools like Snyk or Dependabot.composer install + minify = predictable state).composer.lock files (e.g., 500+ lines of metadata for 20 packages).source.sha updates for every composer update).composer.lock is a blocker for automated vulnerability checks).composer.lock (e.g., build scripts, legacy tooling like extra fields for internal tracking).composer-normalize (more aggressive lockfile sanitization)."This package cuts the noise in our dependency management by auto-cleaning composer.lock, reducing PR clutter by 30–50% and ensuring all environments stay in sync. It’s a low-risk, high-impact fix for our Laravel stack—like ‘auto-formatting’ for dependencies. No major rework needed; just a one-time CI integration that pays dividends in maintainability and security scans. ROI: Faster releases, fewer merge conflicts, and cleaner audit trails."
*"We’re adding composer/metadata-minifier to standardize composer.lock by stripping non-essential metadata. This will:
source.sha updates).*"Tired of merging composer.lock changes that add zero value? This package automatically cleans up the lockfile to keep only what matters, so your PRs stay focused on actual code. How it works:
composer update (or in CI).composer require --dev composer/metadata-minifier
./vendor/bin/composer-metadata-minifier
```"
### **For Security/Compliance Teams:**
*"This package **simplifies dependency audits** by removing redundant metadata from `composer.lock`, making it easier for tools like **Snyk** or **Dependabot** to scan for vulnerabilities. **Key benefits**:
- **Fewer false positives** in scans (no dev-specific hashes).
- **Cleaner audit trails** for compliance (e.g., SOC 2, ISO 27001).
- **Automated hygiene**—no manual lockfile edits needed.
**Action**: Integrate into CI to **auto-minify lockfiles before scanning**."*
How can I help you explore Laravel packages today?