Download the PHP package croustibat/composer-check without Composer
On this page you can find all versions of the php package croustibat/composer-check. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download croustibat/composer-check
More information about croustibat/composer-check
Files in croustibat/composer-check
Package composer-check
Short Description Interactive CLI tool to check and update outdated Composer dependencies
License MIT
Homepage https://github.com/croustibat/composer-check
Informations about the package composer-check
Composer Check
Interactive & CI-friendly tool to check and update outdated Composer dependencies
A standalone CLI tool that provides both an interactive mode for updating dependencies and a CI-ready mode for automated pipelines. Works with any PHP project, with optional Laravel integration.
Features
- Interactive Mode: Beautiful CLI with Laravel Prompts for manual updates
- CI Mode: Non-interactive output with configurable exit codes
- Multiple Formats: Table, JSON, or Markdown output
- Security Checks: Integrates with
composer audit - Flexible Filters: Filter by major, minor, or patch updates
- Ignore List: Exclude specific packages from checks
- Configurable: All options can be set via config file
- Framework Agnostic: Works with any PHP project
- Laravel Integration: Optional auto-discovered Artisan command
Installation
That's it! The tool is ready to use immediately.
Usage
Standalone CLI (any PHP project)
This opens an interactive prompt where you can select which packages to update.
Laravel Integration
For Laravel projects, the package is auto-discovered. Use the Artisan command:
Optionally publish the config file:
CI Mode
For use in CI/CD pipelines:
Exit Codes
| Code | Meaning |
|---|---|
| 0 | All packages up to date (or check passed) |
| 1 | Outdated packages found (with --fail-on-* options) |
| 2 | Error (e.g., JSON parse failure) |
Options
| Option | Description |
|---|---|
--ci |
Run in non-interactive mode |
--dev |
Include dev dependencies |
--all |
Check all dependencies (not just direct) |
--major-only |
Only show major updates |
--minor-only |
Only show minor updates |
--patch-only |
Only show patch updates |
--format=<format> |
Output format: table, json, or markdown |
--security |
Also check for security vulnerabilities |
--fail-on-outdated |
Exit with code 1 if any packages are outdated |
--fail-on-major |
Exit with code 1 if major updates exist |
--ignore=<package> |
Packages to ignore (can be used multiple times) |
--working-dir=<path> |
Working directory for composer commands |
CI/CD Examples
GitHub Actions
GitLab CI
JSON Output for Custom Processing
Output:
Configuration
Laravel Projects
Publish and edit the config file:
Standalone Projects
For non-Laravel projects, use command-line options to configure behavior:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Croustibat
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of composer-check with dependencies
illuminate/collections Version ^10.0|^11.0|^12.0
laravel/prompts Version ^0.1|^0.2|^0.3
symfony/console Version ^6.0|^7.0
symfony/process Version ^6.0|^7.0