Download the PHP package daa/project-tools without Composer
On this page you can find all versions of the php package daa/project-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download daa/project-tools
More information about daa/project-tools
Files in daa/project-tools
Package project-tools
Short Description Project development tools
License MIT
Homepage https://github.com/danielanteloagra/project-tools
Informations about the package project-tools
Php Project Tools
Composer based project tools to automate the following:
- Check php files for syntax errors
- Check php files for PSR Coding Standads
- Check php files for possible bugs, unused parameters, suboptimal code, etc.
- Ensure all project tests are being passed
- Lint assets (js, css, etc)
INSTALLATION:
Simply add daa/project-tools as a composer dependency.
USAGE:
If you are using git for your project use the scripts provided to configure the automate checks.
After a composer update --dev, when ever you carry out a git commit, it will ensure there are no errors, coding standard issues or failing tests before processing the commit.
Note: May not work in some IDEs (eg. git hooks are ignored in Netbeans). I tend to use the command line.
You can configure the the pre-commit rules by modifying the $conf array in .git/hooks/pre-commit, the defaults are:
and advanced configuration can be:
As you can see, in this example we hve added linters for our assets, but these extra checks could be anything.
ALTERNATIVE USE:
If you are not using git or don't want the checks to be automated hooks, you can use the tools manually.
You can also use individual modules
Have a look at Hooks/git/pre-commit and Tools/CodeQualityTool.php for more usage information.
All versions of project-tools with dependencies
phpunit/phpunit Version *
squizlabs/php_codesniffer Version *
phpmd/phpmd Version *
fabpot/php-cs-fixer Version *
symfony/console Version ~2.0
symfony/process Version ~2.0
symfony/finder Version ~2.0