README.md (856B)
1 # PHP_TokenStream 2 3 ## Installation 4 5 You can use [Composer](http://getcomposer.org/) or the [PEAR Installer](http://pear.php.net/manual/en/guide.users.commandline.cli.php) to download and install this package as well as its dependencies. 6 7 ### Composer 8 9 To add this package as a local, per-project dependency to your project, simply add a dependency on `phpunit/php-token-stream` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on PHP_TokenStream: 10 11 { 12 "require": { 13 "phpunit/php-token-stream": "*" 14 } 15 } 16 17 ### PEAR Installer 18 19 The following two commands (which you may have to run as `root`) are all that is required to install this package using the PEAR Installer: 20 21 pear config-set auto_discover 1 22 pear install pear.phpunit.de/PHP_TokenStream