Get PHP Insights on a Laravel project in seconds
PHPInsights is an awesome way to get insights on improving a codebase. Here's my shell alias/function that adds a package to a Laravel project, publishes the configuration, and runs the analysis job...
-
cd
into your project, typegetinsights
- make coffee, come back and begin improving code
- profit?
getinsights() {
composer require nunomaduro/phpinsights --dev
php artisan vendor:publish --provider="NunoMaduro\PhpInsights\Application\Adapters\Laravel\InsightsServiceProvider"
php artisan insights
}
Written by matt j. sorenson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#