Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit c5f4692

Browse files
committed
Merge pull request #104 from theofidry/patch-1
Add composer installation in the doc
2 parents e137de6 + 58940ac commit c5f4692

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ The command works in three steps:
2323

2424
## Installation
2525

26+
### Composer
27+
28+
For a system-wide installation via Composer, you can run:
29+
30+
```bash
31+
$ composer global require sensiolabs-de/deprecation-detector
32+
```
33+
34+
Make sure you have `~/.composer/vendor/bin/` in your `PATH` and you will be able to call the `deprecation-detector` command.
35+
2636
### Standalone installation
2737

2838
Clone the repository
@@ -43,13 +53,15 @@ Create phar archive with [Box](http://box-project.github.io/box2/) (optional)
4353
$ box build
4454
```
4555

46-
If you want to call the deprecation-detector globally, it needs to be placed in your `PATH`. For example with:
56+
Provided you created the phar archive, if you want to call the deprecation-detector globally, it needs to be placed in your `PATH`. For example with:
4757

4858
```bash
49-
$ sudo chmod a+x deprecation-detector.phar
50-
$ sudo mv deprecation-detector.phar /usr/local/bin/deprecation-detector
59+
$ chmod a+x deprecation-detector.phar
60+
$ mv deprecation-detector.phar /usr/local/bin/deprecation-detector
5161
```
5262

63+
Otherwise you can call `bin/deprecation-detector` directly.
64+
5365
## Usage
5466

5567

0 commit comments

Comments
 (0)