Skip to content

Releases: stefanzweifel/laravel-stats

v2.5.1

11 Mar 18:37
Compare
Choose a tag to compare

Fixes

  • Fix stats command when run in projects which is using Closure based Event Listeners in Models booted method. #193

v2.5.0

20 Nov 19:50
Compare
Choose a tag to compare

Added

  • Support for PHP 8 #187

v2.4.1

29 Sep 18:10
Compare
Choose a tag to compare

Changed

  • Use latest version of stefanzweifel/laravel-stats-phploc (Remove deprecated sebastian/finder-facade dependency) #185, #184

v2.4.0

08 Sep 15:59
Compare
Choose a tag to compare

Added

  • Add Database Factory Classifier #183
  • Add Support for Laravel 8 #180

v2.3.0

03 Sep 18:22
Compare
Choose a tag to compare

I'm thrilled to release v2.3.0 of laravel-stats. 🎉

A quick overview of what has changed in this version.

  • Support for Model Observers has been added. (#177, #128)
  • A new --share option has been added (see below for more information) #178
  • Support for Laravel 6 and PHPUnit 8 has been added back. (Was previously removed in v2.1.0)

New --share option

v2.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.

What does this mean in detail?

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?"

What is being shared?

The request sent to the API contains:

  • the project name you've defined (used internally as a unique identifier)
  • a list of components and their statistical numbers in your projects. (e.g. 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

v2.2.0

04 Apr 18:49
Compare
Choose a tag to compare

Added

  • Add Blade Components Classifier #169, #173
  • Add Custom Casts Classifier #168, #174

v2.1.1

03 Mar 19:27
Compare
Choose a tag to compare

Removed

  • Drop support for phpunit 8.0

v2.1.0

03 Mar 19:26
Compare
Choose a tag to compare

Note: Due to underlying changes to the phploc-dependency, the numbers for "loc" and "lloc" in your project may change.

Changed

  • Run test suite against Laravel 7 #170

Removed

  • Removed support to detect Illuminate\Http\Resources\Json\Resource as an API resource #170
  • Dropped support for Laravel 5.8 #170
  • Dropped support for Laravel 6.0 #170
  • Dropped support for PHP 7.2 #170

v2.0.2

22 Feb 19:10
Compare
Choose a tag to compare

Changed

  • Changed Version Contraints for phploc/phploc to support 6.0 #167

v2.0.1

22 Feb 19:10
Compare
Choose a tag to compare

Added

  • Add Laravel Nova Dashboard Classifier #158, #159
  • Add php-cs-fixer GitHub Actions workflow #160

Changed

  • Test Package against Laravel 6.0 #155
  • Set declare(strict_types=1) everywhere #161
  • Changed Version Contraints in composer.json to support Laravel 7.0
  • Changed Version Contraints for phpunit/phpunit to support 9.0

Fixed

  • Make ControllerClassifier compatible with Lumen 6.0 2462fe
  • Fix an Issue in ResourceClassifier where not all kinds of Resources were correctly identified as API Resources #156