Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 3, 2017
1 parent 7deaf88 commit 3e376e4
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions README.md
Expand Up @@ -6,32 +6,24 @@

### PHP Archive (PHAR)

The easiest way to obtain PHPCOV is to download a [PHP Archive (PHAR)](http://php.net/phar) that has all required dependencies of PHPCOV bundled in a single file:
The easiest way to obtain phpcov is to download a [PHP Archive (PHAR)](http://php.net/phar) that has all required dependencies of phpcov bundled in a single file:

wget https://phar.phpunit.de/phpcov.phar
chmod +x phpcov.phar
mv phpcov.phar /usr/local/bin/phpcov
$ wget https://phar.phpunit.de/phpcov.phar
$ chmod +x phpcov.phar
$ mv phpcov.phar /usr/local/bin/phpcov

You can also immediately use the PHAR after you have downloaded it, of course:

wget https://phar.phpunit.de/phpcov.phar
php phpcov.phar
$ wget https://phar.phpunit.de/phpcov.phar
$ php phpcpd.phar

This comment has been minimized.

Copy link
@webysther

webysther Feb 14, 2017

Contributor

### Composer

Simply add a dependency on `phpunit/phpcov` to your project's `composer.json` file if you use [Composer](http://getcomposer.org/) to manage the dependencies of your project. Here is a minimal example of a `composer.json` file that just defines a development-time dependency on PHPCOV:
You can add this tool as a local, per-project, development-time dependency to your project using [Composer](https://getcomposer.org/):

{
"require-dev": {
"phpunit/phpcov": "*"
}
}
$ composer require --dev phpunit/phpcov

For a system-wide installation via Composer, you can run:

composer global require 'phpunit/phpcov=*'

Make sure you have `~/.composer/vendor/bin/` in your path.
You can then invoke it using the `vendor/bin/phpcov` executable.

## Usage

Expand Down

0 comments on commit 3e376e4

Please sign in to comment.