Skip to content

Commit 96b4c7a

Browse files
committed
Issue #40: Added support for PHP 8.4
Signed-off-by: alexmerlin <[email protected]>
1 parent e641efb commit 96b4c7a

File tree

12 files changed

+83
-63
lines changed

12 files changed

+83
-63
lines changed

.laminas-ci.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ignore_php_platform_requirements": {
3+
"8.4": true
4+
},
5+
"backwardCompatibilityCheck": true
6+
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 DotKernel
3+
Copyright (c) 2021 Dotkernel
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
> dot-cli is a wrapper on top of [laminas-cli](https://github.com/laminas/laminas-cli)
55
66
![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-cli)
7-
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-cli/3.7.0)
7+
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-cli/3.8.0)
88

99
[![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-cli)](https://github.com/dotkernel/dot-cli/issues)
1010
[![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-cli)](https://github.com/dotkernel/dot-cli/network)
@@ -14,13 +14,13 @@
1414
[![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)
1515
[![codecov](https://codecov.io/gh/dotkernel/dot-cli/graph/badge.svg?token=0DFCK2GUBT)](https://codecov.io/gh/dotkernel/dot-cli)
1616

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

1919
## Requirements
2020

21-
- PHP >= 8.2
22-
- laminas/laminas-servicemanager >= 3.11 || >= 4.0,
23-
- laminas/laminas-cli >= 1.4
21+
- **PHP**: 8.2, 8.3 or 8.4
22+
- **laminas/laminas-servicemanager**: >= 3.11 || >= 4.0,
23+
- **laminas/laminas-cli**: >= 1.4
2424

2525
## Setup
2626

@@ -61,25 +61,25 @@ php ./bin/cli.php
6161
The output should look similar to this, containing information on how to start using dot-cli:
6262

6363
```text
64-
DotKernel CLI 1.0.0
65-
66-
Usage:
67-
command [options] [arguments]
68-
69-
Options:
70-
-h, --help Display help for the given command. When no command is given display help for the list command
71-
-q, --quiet Do not output any message
72-
-V, --version Display this application version
73-
--ansi Force ANSI output
74-
--no-ansi Disable ANSI output
75-
-n, --no-interaction Do not ask any interactive question
76-
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
77-
78-
Available commands:
79-
help Display help for a command
80-
list List commands
81-
demo
82-
demo:command Demo command description.
64+
Dotkernel CLI 1.0.0
65+
66+
Usage:
67+
command [options] [arguments]
68+
69+
Options:
70+
-h, --help Display help for the given command. When no command is given display help for the list command
71+
-q, --quiet Do not output any message
72+
-V, --version Display this application version
73+
--ansi Force ANSI output
74+
--no-ansi Disable ANSI output
75+
-n, --no-interaction Do not ask any interactive question
76+
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
77+
78+
Available commands:
79+
help Display help for a command
80+
list List commands
81+
demo
82+
demo:command Demo command description.
8383
```
8484

8585
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.

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dotkernel/dot-cli",
33
"type": "library",
4-
"description": "DotKernel component for creating console applications based on laminas-cli",
4+
"description": "Dotkernel component for creating console applications based on laminas-cli",
55
"license": "MIT",
66
"homepage": "https://github.com/dotkernel/dot-cli",
77
"keywords": [
@@ -13,7 +13,7 @@
1313
],
1414
"authors": [
1515
{
16-
"name": "DotKernel Team",
16+
"name": "Dotkernel Team",
1717
"email": "[email protected]"
1818
}
1919
],
@@ -24,7 +24,7 @@
2424
}
2525
},
2626
"require": {
27-
"php": "~8.2.0 || ~8.3.0",
27+
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
2828
"laminas/laminas-cli": "^1.4.0",
2929
"laminas/laminas-servicemanager": "^3.11.1 || ^4.0"
3030
},

config/autoload/cli.global.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
return [
99
'dot_cli' => [
1010
'version' => '1.0.0',
11-
'name' => 'DotKernel CLI',
11+
'name' => 'Dotkernel CLI',
1212
'commands' => [
1313
DemoCommand::getDefaultName() => DemoCommand::class,
1414
],

docs/book/v3/configuration.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
After installation, register `dot-cli` in your project by adding the below line to your configuration aggregator (usually: `config/config.php`):
66

7-
Dot\Cli\ConfigProvider::class,
7+
```shell
8+
Dot\Cli\ConfigProvider::class,
9+
```
810

911
## Copy bootstrap file
1012

@@ -16,7 +18,9 @@ This is the bootstrap file you will use to execute your commands with.
1618
Locate in this package the following file `config/autoload/cli.global.php` then copy it to your application's `config/autoload/` directory.
1719
This is the config file you will add your commands under the `commands` key, as in the following example:
1820

19-
'commands' => [
20-
DemoCommand::getDefaultName() => DemoCommand::class,
21-
ExampleCommand::getDefaultName() => ExampleCommand::class,
22-
],
21+
```php
22+
'commands' => [
23+
DemoCommand::getDefaultName() => DemoCommand::class,
24+
ExampleCommand::getDefaultName() => ExampleCommand::class,
25+
],
26+
```

docs/book/v3/installation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
Install `dotkernel/dot-cli` by executing the following Composer command:
44

5-
composer require dotkernel/dot-cli
5+
```shell
6+
composer require dotkernel/dot-cli
7+
```

docs/book/v3/lock-files.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ If a command was force stopped, locate the lock file in the configured directory
66

77
## Configuration
88

9-
Inside `config/autoload/cli.global.php` under the `FileLockerInterface::class` key the file locker can be disabled and the location of the lock files can be changed
9+
Inside `config/autoload/cli.global.php` under the `FileLockerInterface::class` key the file locker can be disabled and the location of the lock files can be changed.
1010

11-
FileLockerInterface::class => [
12-
'enabled' => true,
13-
'dirPath' => getcwd() . '/data/lock',
14-
],
11+
```php
12+
FileLockerInterface::class => [
13+
'enabled' => true,
14+
'dirPath' => getcwd() . '/data/lock',
15+
],
16+
```

docs/book/v3/testing.md

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,33 @@
22

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

5-
php ./bin/cli.php
5+
```shell
6+
php ./bin/cli.php
7+
```
68

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

9-
DotKernel CLI 1.0.0
10-
11-
Usage:
12-
command [options] [arguments]
13-
14-
Options:
15-
-h, --help Display help for the given command. When no command is given display help for the list command
16-
-q, --quiet Do not output any message
17-
-V, --version Display this application version
18-
--ansi Force ANSI output
19-
--no-ansi Disable ANSI output
20-
-n, --no-interaction Do not ask any interactive question
21-
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
22-
23-
Available commands:
24-
help Display help for a command
25-
list List commands
26-
demo
27-
demo:command Demo command description.
11+
```text
12+
Dotkernel CLI 1.0.0
13+
14+
Usage:
15+
command [options] [arguments]
16+
17+
Options:
18+
-h, --help Display help for the given command. When no command is given display help for the list command
19+
-q, --quiet Do not output any message
20+
-V, --version Display this application version
21+
--ansi Force ANSI output
22+
--no-ansi Disable ANSI output
23+
-n, --no-interaction Do not ask any interactive question
24+
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
25+
26+
Available commands:
27+
help Display help for a command
28+
list List commands
29+
demo
30+
demo:command Demo command description.
31+
```
2832

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

docs/book/v3/usage.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ Also update the `$defaultName` property and the description set inside the `conf
88

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

11-
php ./bin/cli.php demo:command
11+
```shell
12+
php ./bin/cli.php demo:command
13+
```

0 commit comments

Comments
 (0)