Skip to content

Commit 3cc8f69

Browse files
Use best practice for adding this library as a dependency using Composer
1 parent 6150bf2 commit 3cc8f69

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
@@ -2,11 +2,11 @@
22

33
## Installation
44

5-
To add File_Iterator as a local, per-project dependency to your project, simply add a dependency on `phpunit/php-file-iterator` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on File_Iterator 1.4:
5+
You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
66

7-
{
8-
"require": {
9-
"phpunit/php-file-iterator": "~1.4"
10-
}
11-
}
7+
composer require phpunit/php-file-iterator
8+
9+
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:
10+
11+
composer require --dev phpunit/php-file-iterator
1212

0 commit comments

Comments
 (0)