Skip to content

Commit 5a2b9ba

Browse files
Use best practice for adding this library as a dependency using Composer
1 parent 80e75e3 commit 5a2b9ba

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ Snapshotting of global state, factored out of PHPUnit into a stand-alone compone
66

77
## Installation
88

9-
To add this package as a local, per-project dependency to your project, simply add a dependency on `sebastian/global-state` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on GlobalState:
9+
You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
10+
11+
composer require sebastian/global-state
12+
13+
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:
14+
15+
composer require --dev sebastian/global-state
1016

11-
{
12-
"require": {
13-
"sebastian/global-state": "1.0.*"
14-
}
15-
}

0 commit comments

Comments
 (0)