Skip to content

Commit ddcbfd4

Browse files
committed
docs: add global installation docs
1 parent b6722e8 commit ddcbfd4

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,30 @@
99

1010

1111
## Installation
12+
13+
### As standalone binary
14+
15+
```sh
16+
composer global require adhocore/cli-syntax
17+
18+
# then you will be able to run it as
19+
clish -h
20+
clish -f file.php
21+
echo '<?php date("Ymd");' | clish
22+
cat file.php | clish
23+
24+
# export png
25+
clish -f file.php -o file.png
26+
```
27+
28+
### As project dependency
1229
```bash
1330
composer require adhocore/cli-syntax
1431
```
1532

1633
## Usage
1734

18-
You can either highlight PHP code in CLI or export to png image.
35+
You can either highlight PHP code in terminal output or export to png image.
1936

2037
### Highlight
2138

0 commit comments

Comments
 (0)