2017 © Pedro Peláez
 

library php-tools

image

eher/php-tools

  • Sunday, December 7, 2014
  • by EHER
  • Repository
  • 0 Watchers
  • 1 Stars
  • 10 Installations
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

php-tools

Php console tools installed with composer, (*1)

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, (*2)

Install in 3 steps

  1. Configure your Path to have a new bin folder, (*3)

    Create the bin folder, (*4)

    mkdir -p ~/bin
    

    Add the new path to .bash_profile, (*5)

    export PATH=~/bin:"$PATH"
    

    If you don't have a .bash_profile, just create it., (*6)

    Don't forget to call your .bash_profile to update the Path, (*7)

    . ~/.bash_profile
    
  2. Install and configure composer, (*8)

    cd
    php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=bin --filename=composer
    composer config -g bin-dir ~/bin
    
  3. Add php-tools to global composer, (*9)

    composer global require eher/php-tools
    

Upgrading

To upgrade php-tools to latest version run bash composer global update eher/php-tools, (*10)

Bitdeli Badge, (*11)

The Versions