stats with Laravel Sail and Swoole extension installed (#207)--share option (#205)Swoole namespace when running stats command. (Fixes Issue when running stats in a Laravel Octane Application) #196stats command when run in projects which is using Closure based Event Listeners in Models booted method. #193I'm thrilled to release v2.3.0 of laravel-stats. 🎉
A quick overview of what has changed in this version.
--share option has been added (see below for more information) #178--share optionv2.3.0 comes with a new --share-option for the stats-command.
By executing php artisan stats --share your project statistics are shared anonymously with the Laravel community.
Your statistics will be combined with other Laravel projects to provide metrics available on stats.laravelshift.com.
The stats command will never automatically share anything! Only when this option is used and you confirm the prompts will data be shared.
By executing php artisan stats --share you can opt-in to share the used components and its statistical numbers like "number of classes" and "lines of code per component" with the Laravel community on stats.laravelshift.com.
Jason McCreary, the creator of Shift, and I developed this feature from an idea we had 2 years ago after Jason gave his "Laravel by the Numbers" talk at Laracon US 2018.
Our goal is to collect and aggregate statistical data from Laravel projects and transform the raw data into an easy-to-read dashboard for the Laravel community.
We hope it to make it easier for you as a developer to make decisions when crafting your Laravel projects. For example: "How many projects use Blade Components?" or "How many projects have a Models folder?"
The request sent to the API contains:
controllers_lloc_per_method or phpunit_tests)Class names or code will never be shared. If you would like to see the exact payload which is sent to the API, you may use the --payload option. You may also use the --dry-run option to prevent sending a request to the API.
For example, the following command will simulate sharing your project stats with the API and output the data to that would be sent:
php artisan stats --share --payload --dry-run
How can I help you explore Laravel packages today?