Skip to content

Commit d081431

Browse files
Use best practice for adding this library as a dependency using Composer
1 parent 13edfd8 commit d081431

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Diff implementation for PHP, factored out of PHPUnit into a stand-alone componen
44

55
## Installation
66

7-
To add this package as a local, per-project dependency to your project, simply add a dependency on `sebastian/diff` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on Diff:
7+
You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
88

9-
{
10-
"require": {
11-
"sebastian/diff": "*"
12-
}
13-
}
9+
composer require sebastian/diff
10+
11+
If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
12+
13+
composer require --dev sebastian/diff
1414

1515
### Usage
1616

0 commit comments

Comments
 (0)