PHPackages                             phphleb/cli-completion - 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. phphleb/cli-completion

ActiveLibrary

phphleb/cli-completion
======================

Setting up CLI autocomplete for PHP Framework HLEB2

09PowerShell

Since Dec 18Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/phphleb/cli-completion)[ Packagist](https://packagist.org/packages/phphleb/cli-completion)[ RSS](/packages/phphleb-cli-completion/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CLI-COMPLETION
--------------

[](#cli-completion)

[![HLEB2](https://camo.githubusercontent.com/838b21da13ac6fa4384590a6a151d564a2832887c0a085cd911223d700ca379c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f484c45422d322d6461726b6379616e)](https://github.com/phphleb/hleb) [![License: MIT](https://camo.githubusercontent.com/fdf4c838e998efe42a2cfb3c27b8addedc9f7ddd1ecfecc4b19254f784232b7a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542532302846726565292d627269676874677265656e2e737667)](https://github.com/phphleb/hleb/blob/master/LICENSE)

Extends CLI support for the **HLEB2** [framework](https://github.com/phphleb/hleb/) &gt;= v2.0.27

Install using Composer:

```
composer require phphleb/cli-completion
```

Or download the script file manually to a folder whose path you'll later specify in the initiator. In this case, you'll need to repeat the process to update the version.

---

> After installation, auto-completion of console commands (`php console `) by pressing **Tab** will substitute suitable framework commands.

> If you have several projects based on the HLEB2 framework, then copy the library files to the user's root folder and specify the path there.

Bash
----

[](#bash)

💾 Script file `/bash/hleb2bash.sh`

### Linux

[](#linux)

For Linux, in a terminal running Bash, add the following line to the ~/.bashrc file. For instance, if the library is installed in a project located at /home/user/web/hleb/, add the following:

```
source /home/user/web/hleb/vendor/phphleb/cli-completion/bash/hleb2bash.sh
```

After adding, restart the terminal or run source ~/.bashrc to apply the changes. Autocompletion will work for all projects based on the HLEB2 framework.

### macOS

[](#macos)

On macOS, the process is similar. You need to add the line to the ~/.bash\_profile or ~/.bashrc file, depending on your terminal setup. For example:

```
source /Users/user/web/hleb/vendor/phphleb/cli-completion/bash/hleb2bash.sh
```

Afterward, restart the terminal or run source ~/.bash\_profile or source ~/.bashrc to apply the changes. Autocompletion will be available for all HLEB2-based projects.

Windows
-------

[](#windows)

### PowerShell

[](#powershell)

On Windows, the PowerShell shell is used.

💾 Script file `/windows/hleb2completion.ps1`

Open the user profile:

```
notepad $PROFILE
```

A file will open in Notepad. (!) If you get an error that the file was not found, create it and then open it again with the previous command:

```
New-Item -ItemType File -Path $PROFILE -Force
```

Now you need to add the path to the executable script in the opened file (specify the actual path):

```
. "C:\Users\user\web\hleb\vendor\phphleb\cli-completion\windows\hleb2completion.ps1"

```

Restart PowerShell.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance50

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/add493abc37e54c44eabe920dd9facf7aae69955c84bb8245b561f3fc51708da?d=identicon)[phphleb](/maintainers/phphleb)

---

Top Contributors

[![phphleb](https://avatars.githubusercontent.com/u/48386098?v=4)](https://github.com/phphleb "phphleb (10 commits)")

### Embed Badge

![Health badge](/badges/phphleb-cli-completion/health.svg)

```
[![Health](https://phpackages.com/badges/phphleb-cli-completion/health.svg)](https://phpackages.com/packages/phphleb-cli-completion)
```

PHPackages © 2026

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