Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update installation instructions.

  • Loading branch information...
commit eb845a2f984232ec5ebdfb83d3d071c26c155528 1 parent 8d4777e
@sebastianbergmann authored
Showing with 13 additions and 11 deletions.
  1. +13 −11 README.markdown
View
24 README.markdown
@@ -1,24 +1,26 @@
-phploc
-======
+# PHPLOC
-**phploc** is a tool for quickly measuring the size and analyzing the structure of a PHP project.
+`phploc` is a tool for quickly measuring the size and analyzing the structure of a PHP project.
-Installation
-------------
+## Installation
-`phploc` should be installed using the PEAR Installer, the backbone of the [PHP Extension and Application Repository](http://pear.php.net/) that provides a distribution system for PHP packages.
+There a two supported ways of installing PHPLOC.
-Depending on your OS distribution and/or your PHP environment, you may need to install PEAR or update your existing PEAR installation before you can proceed with the following instructions. `sudo pear upgrade PEAR` usually suffices to upgrade an existing PEAR installation. The [PEAR Manual ](http://pear.php.net/manual/en/installation.getting.php) explains how to perform a fresh installation of PEAR.
+You can use the [PEAR Installer](http://pear.php.net/manual/en/guide.users.commandline.cli.php) to download and install PHPLOC as well as its dependencies. You can also download a [PHP Archive (PHAR)](http://php.net/phar) of PHPLOC that has all required dependencies of PHPLOC bundled in a single file.
-The following two commands (which you may have to run as `root`) are all that is required to install `phploc` using the PEAR Installer:
+### PEAR Installer
+
+The following two commands (which you may have to run as `root`) are all that is required to install PHPLOC using the PEAR Installer:
pear config-set auto_discover 1
pear install pear.phpunit.de/phploc
-After the installation you can find the `phploc` source files inside your local PEAR directory; the path is usually `/usr/lib/php/PHPLOC`.
+### PHP Archive (PHAR)
+
+ wget http://pear.phpunit.de/get/phploc.phar
+ chmod +x phploc.phar
-Usage Examples
---------------
+## Usage Example
➜ ~ phploc /usr/local/src/phpunit/PHPUnit
phploc 1.7.0 by Sebastian Bergmann.
Please sign in to comment.
Something went wrong with that request. Please try again.