eher / php-tools
1.0.3
2014-12-07 15:57 UTC
Requires
This package is auto-updated.
Last update: 2024-10-29 04:04:02 UTC
README
#php-tools Php console tools installed with composer
Tools included:
- composer - Dependency Manager for PHP
- faker - Faker is a PHP library that generates fake data for you
- pdepend - This tool shows you the quality of your design in the terms of extensibility, reusability and maintainability
- php-cs-fixer - Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)
- phpcs - PHP_CodeSniffer tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards
- phpctags - An enhanced ctags compatible index generator written in pure PHP
- phpmd - PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD
- phpspec - SpecBDD Framework for PHP
- phpunit - The PHP Unit Testing framework
- phpwatch - Command line client that allow you to run arbitrary shell commands whenever changes occur in a list of specified files
- twig-lint - Twig-lint is a lint tool for your twig files
##Install in 3 steps
- Configure your Path to have a new bin folder
Create the bin folder
mkdir -p ~/bin
Add the new path to .bash_profile
export PATH=~/bin:"$PATH"
If you don't have a .bash_profile, just create it.
Don't forget to call your .bash_profile to update the Path
. ~/.bash_profile
- Install and configure composer
cd php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=bin --filename=composer composer config -g bin-dir ~/bin
- Add php-tools to global composer
composer global require eher/php-tools
##Upgrading
To upgrade php-tools to latest version run
composer global update eher/php-tools