erikgaal/cx

487,468 3
Install
composer require erikgaal/cx
Latest Version:v0.3.5
PHP:^8.3
Laravel:11 · 12
License:MIT
Last Updated:Sep 2, 2025
Links: GitHub  ·  Packagist
Maintainer: erikgaal

cx

Nx but for Composer

Installation

composer require --dev erikgaal/cx

Usage

Affected

Run tasks in projects affected by changes.

composer affected -t test
Option Description
--bail Stop on first error
--base Base of the current branch (usually main)
--exclude Exclude certain projects from being processed
--graph Show the task graph of the command
--head Latest commit of the current branch (usually HEAD)
--project, -p Filter certain projects from being processed
--target, -t Tasks to run for affected projects
--uncommitted Only uncommitted changes
--untracked Only untracked changes

Graph

Show the dependency graph of the project.

composer graph
Option Description
--affected Highlight affected projects
--base Base of the current branch (usually main)
--head Latest commit of the current branch (usually HEAD)
--target, -t Tasks to run for affected projects
--uncommitted Only uncommitted changes
--untracked Only untracked changes

Run many

Run tasks in multiple projects.

composer run-many [target]...
Option Description
--project, -p Projects to run
--parallel Run tasks in parallel
--outputStyle How task output should be displayed.dynamic: recommended for local development, overwrites previous outputstatic: recommended for CI, no output is overwritten

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP Laravel License
v0.3.5 ^8.3 ^11.0|^12.0 MIT
v0.3.4 ^8.3 ^11.0|^12.0 MIT
v0.3.3 ^8.3 ^11.0|^12.0 MIT
v0.3.2 ^8.3 ^11.0 MIT
v0.3.1 ^8.3 ^11.0 MIT