Skip to content

Commit 4f87b45

Browse files
committed
badge fixes
Signed-off-by: alexmerlin <[email protected]>
1 parent cd07db2 commit 4f87b45

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

README.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
> [!IMPORTANT]
44
> dot-cli is a wrapper on top of [laminas-cli](https://github.com/laminas/laminas-cli)
5-
>
6-
> ![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Frepos%2Flaminas%2Flaminas-cli%2Fproperties%2Fvalues&query=%24%5B%3F(%40.property_name%3D%3D%22maintenance-mode%22)%5D.value&label=Maintenance%20Mode)
75
86
![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-cli)
9-
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-cli/3.4.2)
7+
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-cli/3.7.0)
108

119
[![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-cli)](https://github.com/dotkernel/dot-cli/issues)
1210
[![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-cli)](https://github.com/dotkernel/dot-cli/network)
@@ -16,14 +14,12 @@
1614
[![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)
1715
[![codecov](https://codecov.io/gh/dotkernel/dot-cli/graph/badge.svg?token=0DFCK2GUBT)](https://codecov.io/gh/dotkernel/dot-cli)
1816

19-
[![SymfonyInsight](https://insight.symfony.com/projects/b9489f03-14e3-441f-aefd-e3b549b4917e/big.svg)](https://insight.symfony.com/projects/b9489f03-14e3-441f-aefd-e3b549b4917e)
20-
2117
DotKernel component to build console applications based on [laminas-cli](https://github.com/laminas/laminas-cli).
2218

2319
## Requirements
2420

2521
- PHP >= 8.2
26-
- laminas/laminas-servicemanager >= 3.11,
22+
- laminas/laminas-servicemanager >= 3.11 || >= 4.0,
2723
- laminas/laminas-cli >= 1.4
2824

2925
## Setup
@@ -32,13 +28,17 @@ DotKernel component to build console applications based on [laminas-cli](https:/
3228

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

35-
composer require dotkernel/dot-cli
31+
```shell
32+
composer require dotkernel/dot-cli
33+
```
3634

3735
### 2. Register ConfigProvider
3836

3937
Open your application's `config/config.php` and the following line under the _DK packages_ comment:
4038

41-
Dot\Cli\ConfigProvider::class,
39+
```php
40+
Dot\Cli\ConfigProvider::class,
41+
```
4242

4343
### 3. Copy bootstrap file
4444

@@ -54,10 +54,13 @@ This is the config file you will add your commands to.
5454

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

57-
php ./bin/cli.php
57+
```shell
58+
php ./bin/cli.php
59+
```
5860

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

63+
```text
6164
DotKernel CLI 1.0.0
6265
6366
Usage:
@@ -77,17 +80,22 @@ The output should look similar to this, containing information on how to start u
7780
list List commands
7881
demo
7982
demo:command Demo command description.
83+
```
8084

8185
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.
8286
For more information, see [laminas-cli documentation](https://docs.laminas.dev/laminas-cli/).
8387

8488
## Setting up as cronjob
8589

86-
* * * * * /opt/plesk/php/7.4/bin/php /var/www/vhosts/example.com/httpdocs/bin/cli.php demo:command -q
90+
```text
91+
* * * * * /opt/plesk/php/7.4/bin/php /var/www/vhosts/example.com/httpdocs/bin/cli.php demo:command -q
92+
```
8793

8894
or
8995

90-
* * * * * cd /var/www/vhosts/example.com/httpdocs/bin && /opt/plesk/php/7.4/bin/php ./cli.php demo:command -q
96+
```text
97+
* * * * * cd /var/www/vhosts/example.com/httpdocs/bin && /opt/plesk/php/7.4/bin/php ./cli.php demo:command -q
98+
```
9199

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

docs/book/v3/overview.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# Overview
22

33
> dot-cli is a wrapper on top of [laminas-cli](https://github.com/laminas/laminas-cli)
4-
>
5-
> ![OSS Lifecycle](https://img.shields.io/osslifecycle/laminas/laminas-cli)

0 commit comments

Comments
 (0)