Skip to content

Commit cd61956

Browse files
committed
New badges, small fixes
1 parent e00eb7e commit cd61956

3 files changed

Lines changed: 26 additions & 11 deletions

File tree

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
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
1010
composer require jbzoo/composer-graph # For a specific project
1111
composer 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

2024
Usage:
@@ -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
5357
php ./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
6266
php ./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
7175
php ./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
8084
php ./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
8993
php ./vendor/bin/composer-graph --show-dev
9094
```
9195
@@ -96,7 +100,7 @@ php ./vendor/bin/composer-graph --show-dev
96100
97101
All options are enabled but `--show-php` (too many packages).
98102
99-
```sh
103+
```shell
100104
php ./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
115119
make update
116120
make test-all
117121
```

tests/ComposerGraphReadmeTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,15 @@
2323
class ComposerGraphReadmeTest extends AbstractReadmeTest
2424
{
2525
protected $packageName = 'Composer-Graph';
26+
27+
/**
28+
* @inheritDoc
29+
*/
30+
protected function setUp(): void
31+
{
32+
parent::setUp();
33+
34+
$this->params['scrutinizer'] = true;
35+
$this->params['codefactor'] = true;
36+
}
2637
}

tests/GraphBuildTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testHelpInReadme()
3737
$result = $this->taskReal(['--help' => null]);
3838
$readme = file_get_contents(PROJECT_ROOT . '/README.md');
3939

40-
isContain("```\n$ php ./vendor/bin/composer-graph --help\n\n{$result}\n```", $readme);
40+
isContain("```shell\n$ php ./vendor/bin/composer-graph --help\n\n{$result}\n```", $readme);
4141
}
4242

4343
public function testEmpty()

0 commit comments

Comments
 (0)