Download the PHP package dodger451/laravelcodechecker without Composer
On this page you can find all versions of the php package dodger451/laravelcodechecker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dodger451/laravelcodechecker
More information about dodger451/laravelcodechecker
Files in dodger451/laravelcodechecker
Package laravelcodechecker
Short Description Basic configurable phpmd, phpcs and lint setup with artisan support
License MIT
Homepage https://github.com/dodger451/laravelcodechecker
Informations about the package laravelcodechecker
LaravelCodeChecker
[]
Creates laravel artisan commands to validate your application's sourcecode with php -l
, phpmd
and phpcs
.
Publishes predefined style rulesets into config/
for customization.
Installation
Install via Composer
Then copy the default config files to /config by running
This will create some rulesets for phpmd and phpcs in config/
Adopt the rules in phpcs/ruleset.xml
and phpmd/rulesets/*.xml
to your preferences, the cc:
commands will use them per default.
To change the default rulefiles, modify config/laravelcodechecker.php
Usage
To validate the application with all checks, run
This will run php -l
, phpmd
and phpcs
on all .php files in tests/
routes/
config/
and app/
.
Alternatively, run each separately:
Per default, each command will target tests routes config app
.
You can provide dirs and/or files as arguments to each cc:
command,
if you don't want to use the default targets in config/laravelcodechecker.php
E.g. to limit phpmd to the directories tests/
and app/
run
To change the default targets per command, modify laravelcodechecker.php
Travis
Example .travis.yml
for travis-ci.org
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
- [david latotzky][https://www.linkedin.com/in/david-latotzky/]
License
license. Please see the license file for more information.
All versions of laravelcodechecker with dependencies
symfony/process Version ^4.0
squizlabs/php_codesniffer Version 3.3.2
phpmd/phpmd Version ^2.6