PHPackages                             chiron/devtools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. chiron/devtools

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

chiron/devtools
===============

A Composer plugin to aid PHP library and application development.

1.0.9(4y ago)04.8k[7 PRs](https://github.com/ncou/devtools/pulls)6MITPHPPHP ^8.0 || ^8.1

Since Jan 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ncou/devtools)[ Packagist](https://packagist.org/packages/chiron/devtools)[ GitHub Sponsors](https://github.com/ncou)[ RSS](/packages/chiron-devtools/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (21)Versions (20)Used By (6)

chiron/devtools
===============

[](#chirondevtools)

 **A Composer plugin to aid PHP library and application development.**

 [![Source Code](https://camo.githubusercontent.com/6d1bbf8ca5a82c6b2e2d9721793a5d394daafde7130a5f168ff632fba56d7640/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d636869726f6e2f646576746f6f6c732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/ncou/devtools) [![Download Package](https://camo.githubusercontent.com/edbba1974206fc21536cc9d15d54b7e0b1fd7efd72ae2fd9899ff57688a2f69b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636869726f6e2f646576746f6f6c732e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://packagist.org/packages/chiron/devtools) [![Read License](https://camo.githubusercontent.com/49348fbce71d30d04d2bfec9fe4ba45662626c7e6a6cac147c030303424599e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636869726f6e2f646576746f6f6c732e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d6461726b6379616e)](https://github.com/ncou/devtools/blob/master/LICENSE) [![Build Status](https://camo.githubusercontent.com/452c9caf2728b871a879ae30848735cd942c97ba66a9d057a8e5d4350ef14c43/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6e636f752f646576746f6f6c732f6275696c642f6d61737465723f7374796c653d666c61742d737175617265266c6f676f3d676974687562)](https://github.com/ncou/devtools/actions/workflows/continuous-integration.yml) [![Codecov Code Coverage](https://camo.githubusercontent.com/ef98100fd0a2135b9f99829c79be3f9ba646dc573519ed160c4e2d105d77d92b/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f6e636f752f646576746f6f6c733f6c6162656c3d636f6465636f76266c6f676f3d636f6465636f76267374796c653d666c61742d737175617265)](https://app.codecov.io/gh/ncou/devtools) [![Psalm Type Coverage](https://camo.githubusercontent.com/db5c76f2aad5f12ffd2986407671191fe2fb95f9e1da14c0ee6581235c603867/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742d7371756172652675726c3d687474707325334125324625324673686570686572642e6465762532466769746875622532466e636f75253246646576746f6f6c73253246636f766572616765)](https://shepherd.dev/github/ncou/devtools)

About
-----

[](#about)

The idea behind this package is to consolidate and simplify the use of development tools and scripts across all my repositories.

These tools might not be for you, and that's okay.

Maybe these tools help a lot, but you have different needs. That's also okay. You may fork and modify to creating your own Composer plugin.

Of course, if you want to help improve these tools, I welcome your contributions. Feel free to open issues, ask about or request features, and submit PRs. I can't wait to see what you come up with.

This project adheres to a [code of conduct](./.github/CODE_OF_CONDUCT.md). By participating in this project and its community, you are expected to uphold this code.

Requirements
------------

[](#requirements)

- PHP 8.0 or 8.1

Installation
------------

[](#installation)

Install this package as a development dependency using [Composer](https://getcomposer.org).

```
composer require --dev chiron/devtools
```

Usage
-----

[](#usage)

This package is a Composer plugin. This means Composer recognizes that it provides custom functionality to your `composer` command. After installation, type `composer list`, and you'll see a lot of new commands that this plugin provides.

```
composer list
```

### Add a Command Prefix

[](#add-a-command-prefix)

The commands this plugin provides are all intermingled with the rest of the Composer commands, so it may be hard to find them all. We have a way to group them by command namespace, though. Open `composer.json` and add a `chiron/devtools.command-prefix` property to the `extra` section. You may use any prefix you wish.

```
{
    "extra": {
        "chiron/devtools": {
            "command-prefix": "my-prefix"
        }
    }
}
```

Now, when you type `composer list` (or just `composer`), you'll see a section of commands that looks like this:

```
 my-prefix
  my-prefix:analyze:all           Runs all static analysis checks.
  my-prefix:analyze:phpstan       Runs the PHPStan static analyzer.
  my-prefix:analyze:psalm         Runs the Psalm static analyzer.
  my-prefix:build:clean           Cleans the build/ directory.
  my-prefix:build:clean:all       Cleans the build/ directory.
  my-prefix:build:clean:cache     Cleans the build/cache/ directory.
  my-prefix:build:clean:coverage  Cleans the build/coverage/ directory.
  my-prefix:changelog             Support for working with Keep A Changelog.
  my-prefix:license               Checks dependency licenses.
  my-prefix:lint:all              Runs all linting checks.
  my-prefix:lint:fix              Auto-fixes coding standards issues, if possible.
  my-prefix:lint:pds              Validates project compliance with pds/skeleton.
  my-prefix:lint:style            Checks for coding standards issues.
  my-prefix:lint:syntax           Checks for syntax errors.
  my-prefix:test:all              Runs linting, static analysis, and unit tests.
  my-prefix:test:coverage:ci      Runs unit tests and generates CI coverage reports.
  my-prefix:test:coverage:html    Runs unit tests and generates HTML coverage report.
  my-prefix:test:unit             Runs unit tests.

```

You can also list commands by command prefix with `composer list my-prefix`.

### Extending or Overriding chiron/devtools Commands

[](#extending-or-overriding-chirondevtools-commands)

Maybe the commands chiron/devtools provides don't do everything you need, or maybe you want to replace them entirely. The configuration allows you to do this!

Using the `chiron/devtools.commands` property in the `extra` section of `composer.json`, you may specify any command (*without* your custom prefix, if you've configured one) as having other scripts to run, in addition to the command's default behavior, or you may override the default behavior entirely.

Specifying additional scripts works exactly like [writing custom commands](https://getcomposer.org/doc/articles/scripts.md#writing-custom-commands)in `composer.json`, but the location is different. Everything you can do with a custom Composer command, you can do here because they're the same thing.

```
{
    "extra": {
        "chiron/devtools": {
            "command-prefix": "my-prefix",
            "commands": {
                "lint:all": {
                    "script": "@mylint"
                },
                "test:all": {
                    "script": [
                        "@mylint",
                        "@phpbench"
                    ]
                }
            }
        }
    },
    "scripts": {
        "mylint": "parallel-lint src tests",
        "phpbench": "phpbench run"
    }
}
```

In this way, when you run `composer my-prefix:lint:all` or `composer my-prefix:test:all`, it will execute the default behavior first and then run your additional commands. To override the default behavior so that it doesn't run at all and only your scripts run, specify the `override` property and set it to `true`.

```
{
    "extra": {
        "chiron/devtools": {
            "commands": {
                "lint:all": {
                    "override": true,
                    "script": "parallel-lint src tests"
                }
            }
        }
    }
}
```

### Composer Command Autocompletion

[](#composer-command-autocompletion)

Did you know you can set up your terminal to do Composer command autocompletion?

If you'd like to have Composer command autocompletion, you may use [bamarni/symfony-console-autocomplete](https://github.com/bamarni/symfony-console-autocomplete). Install it globally with Composer:

```
composer global require bamarni/symfony-console-autocomplete
```

Then, in your shell configuration file — usually `~/.bash_profile` or `~/.zshrc`, but it could be different depending on your settings — ensure that your global Composer `bin` directory is in your `PATH`, and evaluate the `symfony-autocomplete` command. This will look like this:

```
export PATH="$(composer config home)/vendor/bin:$PATH"
eval "$(symfony-autocomplete)"
```

Now, you can use the `tab` key to auto-complete Composer commands:

```
composer my-prefix:[TAB][TAB]
```

Contributing
------------

[](#contributing)

Contributions are welcome! To contribute, please familiarize yourself with [CONTRIBUTING.md](./.github/CONTRIBUTING.md).

Coordinated Disclosure
----------------------

[](#coordinated-disclosure)

Keeping user information safe and secure is a top priority, and we welcome the contribution of external security researchers. If you believe you've found a security issue in software that is maintained in this repository, please read [SECURITY.md](./.github/SECURITY.md) for instructions on submitting a vulnerability report.

Credits
-------

[](#credits)

This composer plugin is based on a fork from the excellent ramsey/devtools-lib.

License
-------

[](#license)

MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Recently: every ~30 days

Total

12

Last Release

1507d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16743322?v=4)[ncou](/maintainers/ncou)[@ncou](https://github.com/ncou)

---

Top Contributors

[![ncou](https://avatars.githubusercontent.com/u/16743322?v=4)](https://github.com/ncou "ncou (41 commits)")

---

Tags

plugindevelopmenttools

### Embed Badge

![Health badge](/badges/chiron-devtools/health.svg)

```
[![Health](https://phpackages.com/badges/chiron-devtools/health.svg)](https://phpackages.com/packages/chiron-devtools)
```

###  Alternatives

[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M142](/packages/wp-cli-wp-cli-tests)[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7135.9k31](/packages/ramsey-devtools)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M344](/packages/drupal-core-dev)[codeigniter4/devkit

Development toolkit for CodeIgniter libraries and projects

69201.9k121](/packages/codeigniter4-devkit)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
