Skip to content

Commit e73cd8e

Browse files
authored
Merge pull request #56 from JBlond/cli-composer
make jblond/php-cli optional
2 parents 2bb7a09 + 0346948 commit e73cd8e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ package. The reason for doing so is primarily because of its high degree of accu
2525
composer require jblond/php-diff
2626
```
2727

28+
### Install for cli support
29+
30+
For cli usage you need to install the suggested `jblond/php-cli` package.
31+
2832
## Example Use
2933

3034
```PHP
@@ -107,7 +111,7 @@ Included is a light and a dark theme.
107111

108112
* PHP 7.2 or greater
109113
* PHP Multibyte String
110-
* [jblond/php-cli](https://github.com/jblond/php-cli)
114+
* [jblond/php-cli](https://github.com/jblond/php-cli) (suggested)
111115

112116
## Issues and feature requests
113117

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@
2626
"require": {
2727
"php": ">=7.2",
2828
"ext-mbstring": "*",
29-
"ext-pcre": "*",
30-
"jblond/php-cli": "^1.0"
29+
"ext-pcre": "*"
3130
},
3231
"require-dev": {
3332
"phpunit/phpunit": "8.*",
3433
"squizlabs/php_codesniffer": "*",
3534
"phpmd/phpmd": "2.*"
3635
},
36+
"suggest": {
37+
"jblond/php-cli": "^1.0"
38+
},
3739
"autoload": {
3840
"psr-4": {
3941
"jblond\\": "lib/jblond"

0 commit comments

Comments
 (0)