Skip to content

make jblond/php-cli optional #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ package. The reason for doing so is primarily because of its high degree of accu
composer require jblond/php-diff
```

### Install for cli support

For cli usage you need to install the suggested `jblond/php-cli` package.

## Example Use

```PHP
Expand Down Expand Up @@ -107,7 +111,7 @@ Included is a light and a dark theme.

* PHP 7.2 or greater
* PHP Multibyte String
* [jblond/php-cli](https://github.com/jblond/php-cli)
* [jblond/php-cli](https://github.com/jblond/php-cli) (suggested)

## Issues and feature requests

Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@
"require": {
"php": ">=7.2",
"ext-mbstring": "*",
"ext-pcre": "*",
"jblond/php-cli": "^1.0"
"ext-pcre": "*"
},
"require-dev": {
"phpunit/phpunit": "8.*",
"squizlabs/php_codesniffer": "*",
"phpmd/phpmd": "2.*"
},
"suggest": {
"jblond/php-cli": "^1.0"
},
"autoload": {
"psr-4": {
"jblond\\": "lib/jblond"
Expand Down