magentron/laravel-blade-lint

Laravel Blade Lint console command

2.0.0 2018-11-28 14:07 UTC

This package is auto-updated.

Last update: 2023-09-15 17:59:35 UTC


README

Latest Stable Version Total Downloads License StyleCI
Laravel 10.x Laravel 9.x Laravel 8.x Laravel 7.x Laravel 6.x Laravel 5.x

Laravel console command to check syntax of blade templates.

Requirements

Perhaps it works with lesser versions as well, but this is untested.

Installation

Add package via composer:

composer require --dev magentron/laravel-blade-lint

For Laravel version < 5.5, edit config/app.php, add the following to the providers array:

Magentron\BladeLinter\Providers\ServiceProvider::class,

Usage

From the command line, run:

php artisan blade:lint

It attempts to determine automatically the number of CPU cores that your system has and to use all cores by starting child worker processes (requires the PHP POSIX extension).

You can use different levels of verbosity for somewhat more detailed information.

Author

Jeroen Derks, a.k.a Magentron

License

Laravel Blade Lint is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Laravel Blade Lint is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Laravel Blade Lint. If not, see http://www.gnu.org/licenses/.