Skip to content

Commit 3f4b1b9

Browse files
committed
Add phar reference to README
1 parent fa8929f commit 3f4b1b9

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

README.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,34 @@ PHP's lack of a real REPL to be frustrating and was not able to find an existing
1919
implementation that was complete. Boris weighs in at a few hundred lines of
2020
fairly straightforward code.
2121

22-
## Usage
22+
## Installation
23+
24+
### 1. As a pre-built phar file
25+
26+
Boris is available for download as a Phar archive:
27+
28+
- https://github.com/d11wtq/boris/releases/download/v1.0.6/boris.phar
29+
30+
curl -O https://github.com/d11wtq/boris/releases/download/v1.0.6/boris.phar
31+
chmod +x boris.phar
32+
./boris.phar
33+
34+
### 2. Via packagist
35+
36+
For use with composer.
2337

24-
Boris is available via [Packagist](https://packagist.org/packages/d11wtq/boris), or you can use it directly from this repo:
38+
- https://packagist.org/packages/d11wtq/boris
39+
40+
### 3. Directly from this repo
41+
42+
This is great if you want to stay really up-to-date. I don't commit unstable
43+
code to master, ever.
2544

2645
git clone git://github.com/d11wtq/boris.git
2746
cd boris
2847
./bin/boris
2948

30-
**Pro Tip**: Add boris to your $PATH for easy access.
49+
### 4. Build your own phar
3150

3251
You can also build a PHAR file using [Box](http://box-project.org/):
3352

@@ -36,8 +55,14 @@ You can also build a PHAR file using [Box](http://box-project.org/):
3655
This will create a `boris.phar` file. Feel free to move it into your bin
3756
directory:
3857

58+
chmod +x boris.phar
3959
mv boris.phar /usr/local/bin/boris
40-
chmod +x /usr/local/bin/boris
60+
61+
### Pro Tip
62+
63+
Add boris to your $PATH for easy access.
64+
65+
## Usage
4166

4267
When Boris starts, you will be at the `boris>` prompt. PHP code you enter at
4368
this prompt is evaluated. If an expression spans multiple lines, Boris will

0 commit comments

Comments
 (0)