-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update install instructions and links to tools list
- Loading branch information
Showing
1 changed file
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,38 @@ | ||
#php-tools | ||
Install php console tools with composer | ||
Php console tools installed with composer | ||
|
||
Tools included: | ||
- php-cs-fixer | ||
- phpcs | ||
- phpwatch | ||
- [php-cs-fixer][php-cs-fixer] - Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible) | ||
- [phpcs][phpcs] - PHP_CodeSniffer tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards | ||
- [phpwatch][phpwatch] - Command line client that allow you to run arbitrary shell commands whenever changes occur in a list of specified files | ||
|
||
##How to install | ||
##Install in 3 steps | ||
|
||
1. Clone the repository | ||
```bash | ||
git clone https://github.com/EHER/php-tools.git ~/.php-tools | ||
``` | ||
|
||
2. Download [composer] | ||
```bash | ||
cd ~/.php-tools | ||
curl -sS https://getcomposer.org/installer | php | ||
``` | ||
|
||
3. Install | ||
```bash | ||
php composer.phar install | ||
``` | ||
|
||
##Configure Path | ||
|
||
Add this to .bash_profile: | ||
|
||
Add this to .bash_profile | ||
```bash | ||
export PATH="$PATH":~/bin | ||
``` | ||
|
||
If you don't have a .bash_profile, just create it. | ||
|
||
[php-cs-fixer]: https://github.com/fabpot/php-cs-fixer | ||
[phpcs]: https://github.com/squizlabs/PHP_CodeSniffer | ||
[phpwatch]: https://github.com/EHER/phpwatch | ||
[composer]: http://getcomposer.org/ |