Skip to content
Laravel Blade Lint Command
Branch: master
Clone or download
Latest commit 87a1a73 Nov 28, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Magentron/BladeLint initial version May 20, 2018
.gitignore Initial commit May 20, 2018
LICENSE Initial commit May 20, 2018
LICENSE.html added LICENSE.html Nov 28, 2018
README.md updated README.md updated Laravel badges links + order Nov 28, 2018
_config.yml Set theme jekyll-theme-minimal May 20, 2018
composer.json fixed autloading missing extra.laravel.providers Nov 28, 2018

README.md

Laravel Blade Lint

Laravel 5.7 Laravel 5.6 Laravel 5.5 Laravel 5.4

Laravel console command to check syntax of blade templates.

Requirements

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

  • PHP 5.6 or above
  • Laravel 5.4 or above

Installation

Add package via composer:

composer require 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

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

You can’t perform that action at this time.