11# JBZoo / Composer-Graph
22
3- [ ![ Build Status] ( https://travis-ci.org/JBZoo/Composer-Graph.svg )] ( https://travis-ci.org/JBZoo/Composer-Graph ) [ ![ Coverage Status] ( https://coveralls.io/repos/JBZoo/Composer-Graph/badge.svg )] ( https://coveralls.io/github/JBZoo/Composer-Graph ) [ ![ Psalm Coverage] ( https://shepherd.dev/github/JBZoo/Composer-Graph/coverage.svg )] ( https://shepherd.dev/github/JBZoo/Composer-Graph )
3+ [ ![ Build Status] ( https://travis-ci.org/JBZoo/Composer-Graph.svg )] ( https://travis-ci.org/JBZoo/Composer-Graph ) [ ![ Coverage Status] ( https://coveralls.io/repos/JBZoo/Composer-Graph/badge.svg )] ( https://coveralls.io/github/JBZoo/Composer-Graph ) [ ![ Psalm Coverage] ( https://shepherd.dev/github/JBZoo/Composer-Graph/coverage.svg )] ( https://shepherd.dev/github/JBZoo/Composer-Graph ) [ ![ Scrutinizer Code Quality ] ( https://scrutinizer-ci.com/g/jbzoo/composer-graph/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/jbzoo/composer-graph/?branch=master ) [ ![ CodeFactor ] ( https://www.codefactor.io/repository/github/jbzoo/composer-graph/badge )] ( https://www.codefactor.io/repository/github/jbzoo/composer-graph/issues )
44[ ![ Stable Version] ( https://poser.pugx.org/jbzoo/composer-graph/version )] ( https://packagist.org/packages/jbzoo/composer-graph ) [ ![ Latest Unstable Version] ( https://poser.pugx.org/jbzoo/composer-graph/v/unstable )] ( https://packagist.org/packages/jbzoo/composer-graph ) [ ![ Dependents] ( https://poser.pugx.org/jbzoo/composer-graph/dependents )] ( https://packagist.org/packages/jbzoo/composer-graph/dependents?order_by=downloads ) [ ![ GitHub Issues] ( https://img.shields.io/github/issues/jbzoo/composer-graph )] ( https://github.com/JBZoo/Composer-Graph/issues ) [ ![ Total Downloads] ( https://poser.pugx.org/jbzoo/composer-graph/downloads )] ( https://packagist.org/packages/jbzoo/composer-graph/stats ) [ ![ GitHub License] ( https://img.shields.io/github/license/jbzoo/composer-graph )] ( https://github.com/JBZoo/Composer-Graph/blob/master/LICENSE )
55
66
77## Installation
88
9- ``` sh
9+ ``` shell
1010composer require jbzoo/composer-graph # For a specific project
1111composer global require jbzoo/composer-graph # As global tool
12+
13+ # OR use phar file.
14+ # Replace <VERSION> to the latest version. See releases page or badge above
15+ wget https://github.com/JBZoo/Composer-Graph/releases/download/< VERSION> /composer-graph.phar
1216```
1317
1418
1519## Usage
1620
17- ```
21+ ``` shell
1822$ php ./vendor/bin/composer-graph --help
1923
2024Usage:
@@ -49,7 +53,7 @@ All examples are screenshots based on the package [JBZoo/Toolbox](https://github
4953
5054
5155### Default output (no args) - minimal view
52- ``` sh
56+ ```shell
5357php ./vendor/bin/composer-graph
5458```
5559
@@ -58,7 +62,7 @@ php ./vendor/bin/composer-graph
5862
5963
6064### Default output with PHP extensions (modules)
61- ``` sh
65+ ```shell
6266php ./vendor/bin/composer-graph --show-ext
6367```
6468
@@ -67,7 +71,7 @@ php ./vendor/bin/composer-graph --show-ext
6771
6872
6973### Default output with versions of packages and relations
70- ``` sh
74+ ```shell
7175php ./vendor/bin/composer-graph --show-link-versions --show-lib-versions
7276```
7377
@@ -76,7 +80,7 @@ php ./vendor/bin/composer-graph --show-link-versions --show-lib-versions
7680
7781
7882### Show suggested packages which are not installed
79- ``` sh
83+ ```shell
8084php ./vendor/bin/composer-graph --show-suggests
8185```
8286
@@ -85,7 +89,7 @@ php ./vendor/bin/composer-graph --show-suggests
8589
8690
8791### Show dev dependencies
88- ``` sh
92+ ```shell
8993php ./vendor/bin/composer-graph --show-dev
9094```
9195
@@ -96,7 +100,7 @@ php ./vendor/bin/composer-graph --show-dev
96100
97101All options are enabled but `--show-php` (too many packages).
98102
99- ``` sh
103+ ```shell
100104php ./vendor/bin/composer-graph \
101105 --show-ext \
102106 --show-dev \
@@ -111,7 +115,7 @@ php ./vendor/bin/composer-graph \
111115
112116
113117## Unit tests and check code style
114- ``` sh
118+ ```shell
115119make update
116120make test-all
117121```
0 commit comments