52

GitHub - awssat/laravel-blade-audit: ? Extensive information about blade views i...

 5 years ago
source link: https://github.com/awssat/laravel-blade-audit
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Laravel Blade Audit

laravel-blade-audit

Latest Version on Packagist Software License

Introduction

Laravel's artisan command to show extensive information about any blade view in laravel's project.

Features

  • General information about the view (size, lines, longest line, blade's directives number ...)
  • Blade directives information (repetitions, type: custom or built-in)
  • Blade directives nesting level.
  • Audit notes (recommendations and best practice notes)

Install

Via Composer

composer require awssat/laravel-blade-audit --dev

Before Laravel 5.5

You'll need to manually register Awssat\BladeAudit\BladeAuditServiceProvider::class service provider in config/app.php.

Usage

php artisan blade:audit view.name

All views:

php artisan blade:audit

Output Example

All Views Audit

output example

One view audit shows same as all views and extra more information

output example2

License

This package is open-sourced software licensed under the MIT license.

Credits


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK