PHPackages                             stecman/composer-bash-completion-plugin - 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. stecman/composer-bash-completion-plugin

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

stecman/composer-bash-completion-plugin
=======================================

BASH/ZSH auto-complete plugin for Composer

7910.3k8[2 issues](https://github.com/stecman/composer-bash-completion-plugin/issues)[1 PRs](https://github.com/stecman/composer-bash-completion-plugin/pulls)PHP

Since May 8Pushed 2y ago5 watchersCompare

[ Source](https://github.com/stecman/composer-bash-completion-plugin)[ Packagist](https://packagist.org/packages/stecman/composer-bash-completion-plugin)[ RSS](/packages/stecman-composer-bash-completion-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

BASH/ZSH auto-complete plugin for Composer
==========================================

[](#bashzsh-auto-complete-plugin-for-composer)

This is an experimental hack to add [Symfony BASH auto complete](https://github.com/stecman/symfony-console-completion) to Composer via a plugin. It's a pretty slimy hack, but it works without editing Composer's code.

[![Composer BASH completion](https://camo.githubusercontent.com/5f7797651c9434914271f54a4d9a12a5078313feae262ddad814bc5101c874ce/68747470733a2f2f692e696d6775722e636f6d2f4d6f44576b62792e676966)](https://camo.githubusercontent.com/5f7797651c9434914271f54a4d9a12a5078313feae262ddad814bc5101c874ce/68747470733a2f2f692e696d6775722e636f6d2f4d6f44576b62792e676966)

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

[](#installation)

1. Install the plugin:

```
composer global require stecman/composer-bash-completion-plugin dev-master

```

2. Generate code to register a completion hook for your shell and Composer configuration:

```
source $(composer config home --global)/vendor/stecman/composer-bash-completion-plugin/generate-hook

```

3. Add the registration code to your shell profile:

- If you're using BASH, copy the output to your `~/.bash_profile`
- If you're using ZSH, copy the output to your `~/.zshrc`

4. Reload your modified shell config (or open a new shell), and enjoy tab completion on Composer

Explanation
-----------

[](#explanation)

This hacky plugin injects an additional command into the Composer application at runtime. When the plugin in this package is activated and the command line starts with `composer depends _completion`, the plugin effectively reboots the application with the completion command added, and drops `depends` from the command line so that `_completion` becomes the command argument. This used to work without piggy-backing on a command, but an update to composer stopped the original method working (#8).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 85.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0795b20d769be43846f69ead3fdd425bf441df2f0877f15e361bab5f7e039036?d=identicon)[stecman](/maintainers/stecman)

---

Top Contributors

[![stecman](https://avatars.githubusercontent.com/u/2230769?v=4)](https://github.com/stecman "stecman (29 commits)")[![przepompownia](https://avatars.githubusercontent.com/u/11404453?v=4)](https://github.com/przepompownia "przepompownia (3 commits)")[![glensc](https://avatars.githubusercontent.com/u/199095?v=4)](https://github.com/glensc "glensc (1 commits)")[![renepenner](https://avatars.githubusercontent.com/u/98465?v=4)](https://github.com/renepenner "renepenner (1 commits)")

---

Tags

bash-completioncompletioncomposercomposer-plugintab-completionzsh-completion

### Embed Badge

![Health badge](/badges/stecman-composer-bash-completion-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/stecman-composer-bash-completion-plugin/health.svg)](https://phpackages.com/packages/stecman-composer-bash-completion-plugin)
```

###  Alternatives

[atchondjo/geoip2country

A lightweight but powerful IP address lookup database solution to determine visitors country

344.1k](/packages/atchondjo-geoip2country)[crisen/ai

优雅的ai客户端

265.5k1](/packages/crisen-ai)[bastinald/laravel-bootstrap-components

Laravel Bootstrap Blade components.

481.3k1](/packages/bastinald-laravel-bootstrap-components)

PHPackages © 2026

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