Laravel Stats: Code Statistics for your Laravel Projects

Laravel Stats: Code Statistics for your Laravel Projects

Laravel Stats is a package inspired by rake stats that gives you code statistics for your Laravel projects:

The output provides metrics grouped into Commands, Controllers, Migrations, Models, Seeders, and Service Providers. Inspired by rake stats (now rails stats), the goal is to provide code insights like lines of code, code to test ratio, and methods per class.

The artisan stats command is missing testing statistics, but the work so far looks promising. A quick glance at the issues shows some milestones in place to provide things like test statistics.

The package provides the following configuration options at the time of writing:

<?php

return [
    /*
     * Ever project is different and sometimes files
     * and folders should be ignored and never
     * count towards the project stats.
     */
    'ignore' => [

        /*
         * Ignore the contents of an entire folder
         */
        'folders' => [
            // 'app/Http/Controllers'
        ],

        /*
         * Ignore certain file names or extensions
         */
        'files' => [
            // 'helpers.php'
            // 'twig.php'
        ],

    ],
];

Check out laravel-stats on GitHub.


Filed in: Laravel Packages


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Full Stack or Back-End Developer
Alexandria, VA; Tallahassee, FL; Orlando, FL
Marketing for Change
Full Stack Software Engineer
Atlanta, GA or Remote
Voxie
Laravel/PHP Developer
Chicago, IL
Neon One
Software Engineer, Web Applications
Vaughan, ON, Canada
Blast Motion
Contract Services Software Engineer (Laravel | Vue | Tailwind)
Remote
Riverbed Technology
Senior Laravel Developer
Wilmington, NC
GE Software Inc.
Senior Full Stack Developer (PHP | Vue | DDD)
Charleston, SC
MassageBook