PHPackages                             dotkernel/dot-cli - 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. [CLI &amp; Console](/categories/cli)
4. /
5. dotkernel/dot-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

dotkernel/dot-cli
=================

Dotkernel component for creating console applications based on laminas-cli

3.10.0(6mo ago)530.8k↑69.4%3[4 issues](https://github.com/dotkernel/dot-cli/issues)4MITPHPPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since May 17Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/dotkernel/dot-cli)[ Packagist](https://packagist.org/packages/dotkernel/dot-cli)[ Docs](https://github.com/dotkernel/dot-cli)[ RSS](/packages/dotkernel-dot-cli/feed)WikiDiscussions 3.0 Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (19)Used By (4)

dot-cli
=======

[](#dot-cli)

Dotkernel component to build console applications based on [laminas-cli](https://github.com/laminas/laminas-cli).

> dot-cli is a wrapper on top of [laminas-cli](https://github.com/laminas/laminas-cli)

Documentation
-------------

[](#documentation)

Documentation is available at: .

Badges
------

[](#badges)

[![OSS Lifecycle](https://camo.githubusercontent.com/8c32d722bf74c96630e8e4f7369a7b6ccc945e67add271fc73c47229b2045134/68747470733a2f2f696d672e736869656c64732e696f2f6f73736c6966656379636c652f646f746b65726e656c2f646f742d636c69)](https://camo.githubusercontent.com/8c32d722bf74c96630e8e4f7369a7b6ccc945e67add271fc73c47229b2045134/68747470733a2f2f696d672e736869656c64732e696f2f6f73736c6966656379636c652f646f746b65726e656c2f646f742d636c69)[![PHP from Packagist (specify version)](https://camo.githubusercontent.com/a20d4653833e97a7aec1cafb6ba8ea9fd39bc65f6c2fc7427cfbf405cd7dc9c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f746b65726e656c2f646f742d636c692f332e31302e30)](https://camo.githubusercontent.com/a20d4653833e97a7aec1cafb6ba8ea9fd39bc65f6c2fc7427cfbf405cd7dc9c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f746b65726e656c2f646f742d636c692f332e31302e30)

[![GitHub issues](https://camo.githubusercontent.com/a159c651966a7339ecfbf242418f2e0c534db192f2f90772db3de4bc7fd366a9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f646f746b65726e656c2f646f742d636c69)](https://github.com/dotkernel/dot-cli/issues)[![GitHub forks](https://camo.githubusercontent.com/e8f87ad209392cd5337e9fda59c3b8f3077425507d48f74131fa1ec81d3abe90/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f646f746b65726e656c2f646f742d636c69)](https://github.com/dotkernel/dot-cli/network)[![GitHub stars](https://camo.githubusercontent.com/ac3aa3a91172ff236ec87f03583d01bd2144fa15141ac1e5e16e8a6acdaf5c15/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f646f746b65726e656c2f646f742d636c69)](https://github.com/dotkernel/dot-cli/stargazers)[![GitHub license](https://camo.githubusercontent.com/9e1b6d055363ec7968950a4daa95e9c113b0c07d1c810ab9798083cd8b0bd527/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646f746b65726e656c2f646f742d636c69)](https://github.com/dotkernel/dot-cli/blob/3.0/LICENSE)

[![Build Static](https://github.com/dotkernel/dot-cli/actions/workflows/continuous-integration.yml/badge.svg?branch=3.0)](https://github.com/dotkernel/dot-cli/actions/workflows/continuous-integration.yml)[![codecov](https://camo.githubusercontent.com/3b33e4b7236d97b08e372589f31b48ca85e33f5cc2e6516864bb13c08770f628/68747470733a2f2f636f6465636f762e696f2f67682f646f746b65726e656c2f646f742d636c692f67726170682f62616467652e7376673f746f6b656e3d304446434b3247554254)](https://codecov.io/gh/dotkernel/dot-cli)[![PHPStan](https://github.com/dotkernel/dot-cli/actions/workflows/static-analysis.yml/badge.svg?branch=3.0)](https://github.com/dotkernel/dot-cli/actions/workflows/static-analysis.yml)

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

[](#requirements)

- **PHP**: 8.2, 8.3, 8.4 or 8.5
- **laminas/laminas-servicemanager**: &gt;= 3.11 || &gt;= 4.0,
- **laminas/laminas-cli**: &gt;= 1.4

Setup
-----

[](#setup)

### 1. Install package

[](#1-install-package)

Run the following command in your application's root directory:

```
composer require dotkernel/dot-cli
```

### 2. Register ConfigProvider

[](#2-register-configprovider)

Open your application's `config/config.php` and the following line under the *DK packages* comment:

```
Dot\Cli\ConfigProvider::class,
```

### 3. Copy bootstrap file

[](#3-copy-bootstrap-file)

Locate file `bin/cli.php` in this package, then copy it to your application's `bin/` directory. This is the bootstrap file you will use to execute your commands with.

### 4. Copy config file

[](#4-copy-config-file)

Locate in this package the following file `config/autoload/cli.global.php` then copy it to your application's `config/autoload/` directory. This is the config file you will add your commands to.

Testing
-------

[](#testing)

Using the command line, go to your application's root directory, then type the following command:

```
php ./bin/cli.php
```

The output should look similar to this, containing information on how to start using dot-cli:

```
Dotkernel CLI 1.0.0

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  help          Display help for a command
  list          List commands
 demo
  demo:command  Demo command description.

```

As shown in `config/autoload/cli.global.php`, dot-cli includes a demo command `demo:command` that will help you understand the basics of creating a new command. For more information, see [laminas-cli documentation](https://docs.laminas.dev/laminas-cli/).

Setting up as a cronjob
-----------------------

[](#setting-up-as-a-cronjob)

```
*   *   *   *   *   /opt/plesk/php/7.4/bin/php /var/www/vhosts/example.com/httpdocs/bin/cli.php demo:command -q

```

or

```
*   *   *   *   *   cd /var/www/vhosts/example.com/httpdocs/bin && /opt/plesk/php/7.4/bin/php ./cli.php demo:command -q

```

Adapt the command to your specifications by replacing **7.4** with your PHP version and **example.com** with your domain name.

Note the **-q** (or **--quiet**) option at the end of the command - it serves as a flag to inform the Application that no output should be returned (unless it's an error).

License
-------

[](#license)

MIT

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance50

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 51.7% 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 ~90 days

Recently: every ~69 days

Total

19

Last Release

202d ago

PHP version history (7 changes)3.0.0PHP ^7.4

3.2.0PHP ~7.4.0 || ~8.0.0 || ~8.1.0

3.4.0PHP ~8.1.0 || ~8.2.0

3.4.2PHP ~8.1.0 || ~8.2.0 || ~8.3.0

3.5.0PHP ~8.2.0 || ~8.3.0

3.8.0PHP ~8.2.0 || ~8.3.0 || ~8.4.0

3.0.x-devPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

### Community

Maintainers

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

---

Top Contributors

[![alexmerlin](https://avatars.githubusercontent.com/u/4542449?v=4)](https://github.com/alexmerlin "alexmerlin (31 commits)")[![arhimede](https://avatars.githubusercontent.com/u/22009710?v=4)](https://github.com/arhimede "arhimede (14 commits)")[![MarioRadu](https://avatars.githubusercontent.com/u/10761919?v=4)](https://github.com/MarioRadu "MarioRadu (5 commits)")[![marioradu05](https://avatars.githubusercontent.com/u/10761919?v=4)](https://github.com/marioradu05 "marioradu05 (5 commits)")[![Howriq](https://avatars.githubusercontent.com/u/63609103?v=4)](https://github.com/Howriq "Howriq (3 commits)")[![claurospace](https://avatars.githubusercontent.com/u/224870609?v=4)](https://github.com/claurospace "claurospace (1 commits)")[![bidi47](https://avatars.githubusercontent.com/u/27284979?v=4)](https://github.com/bidi47 "bidi47 (1 commits)")

---

Tags

cliconsolelaminasdotkernel

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dotkernel-dot-cli/health.svg)

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

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.3k](/packages/symfony-console)[nunomaduro/collision

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

4.6k331.8M8.5k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[wp-cli/php-cli-tools

Console utilities for PHP

68325.0M367](/packages/wp-cli-php-cli-tools)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[kevinlebrun/colors.php

Colors for PHP CLI scripts

3426.7M45](/packages/kevinlebrun-colorsphp)

PHPackages © 2026

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