11# dot-cli
22
33![ OSS Lifecycle] ( https://img.shields.io/osslifecycle/dotkernel/dot-cli )
4- ![ PHP from Packagist (specify version)] ( https://img.shields.io/packagist/php-v/dotkernel/dot-cli/3.2 .0 )
4+ ![ PHP from Packagist (specify version)] ( https://img.shields.io/packagist/php-v/dotkernel/dot-cli/3.4 .0 )
55
66[ ![ GitHub issues] ( https://img.shields.io/github/issues/dotkernel/dot-cli )] ( https://github.com/dotkernel/dot-cli/issues )
77[ ![ GitHub forks] ( https://img.shields.io/github/forks/dotkernel/dot-cli )] ( https://github.com/dotkernel/dot-cli/network )
88[ ![ GitHub stars] ( https://img.shields.io/github/stars/dotkernel/dot-cli )] ( https://github.com/dotkernel/dot-cli/stargazers )
99[ ![ GitHub license] ( https://img.shields.io/github/license/dotkernel/dot-cli )] ( https://github.com/dotkernel/dot-cli/blob/3.0/LICENSE )
1010
11+ [ ![ Build Static] ( 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 )
12+
13+ [ ![ SymfonyInsight] ( https://insight.symfony.com/projects/b9489f03-14e3-441f-aefd-e3b549b4917e/big.svg )] ( https://insight.symfony.com/projects/b9489f03-14e3-441f-aefd-e3b549b4917e )
14+
1115DotKernel component to build console applications based on [ laminas-cli] ( https://github.com/laminas/laminas-cli ) .
1216
1317### Requirements
14- - PHP >= 7.4
15- - laminas/laminas-servicemanager >= 3.6 ,
16- - laminas/laminas-cli >= 1.0
18+ - PHP >= 8.1
19+ - laminas/laminas-servicemanager >= 3.11 ,
20+ - laminas/laminas-cli >= 1.4
1721
1822
1923### Setup
2024#### 1. Install package
2125Run the following command in your application's root directory:
22- ``` bash
23- $ composer require dotkernel/dot-cli
24- ```
26+
27+ composer require dotkernel/dot-cli
2528
2629#### 2. Register ConfigProvider
27- Open your application's ` config/config.php ` and add ` Dot\Cli\ConfigProvider::class, ` under the _ DK packages_ comment.
30+ Open your application's ` config/config.php ` and the following line under the _ DK packages_ comment:
31+
32+ Dot\Cli\ConfigProvider::class,
2833
2934#### 3. Copy bootstrap file
30- Locate in this package the following file ` bin/cli.php ` then copy it to your application's ` bin/ ` directory.
35+ Locate file ` bin/cli.php ` in this package, then copy it to your application's ` bin/ ` directory.
3136This is the bootstrap file you will use to execute your commands with.
3237
3338#### 4. Copy config file
@@ -37,9 +42,9 @@ This is the config file you will add your commands to.
3742
3843### Testing
3944Using the command line, go to your application's root directory, then type the following command:
40- ``` bash
41- $ php /bin/cli.php
42- ```
45+
46+ php /bin/cli.php
47+
4348The output should look similar to this, containing information on how to start using dot-cli:
4449``` text
4550DotKernel CLI 1.0.0
0 commit comments