bdelespierre/laravel-blade-linter

A simple Blade template syntax checker for Laravel

v1.6.0 2021-04-22 08:03 UTC

This package is auto-updated.

Last update: 2024-04-22 14:43:30 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads

Performs syntax-checks of your Blade templates. Just that.

Installation

You can install the package via composer:

composer require --dev bdelespierre/laravel-blade-linter

Usage

php artisan blade:lint

Or if you want to lint specific templates or directories:

php artisan blade:lint resources/views/

If you're using PHPStan (please note it will make the linting a lot slower):

php artisan blade:lint --phpstan=vendor/bin/phpstan resources/views

Testing

composer test

Building standalone phar

# install clue/phar-composer globally (you'll need to update your $PATH,
# see https://getcomposer.org/doc/03-cli.md#global)
composer global require clue/phar-composer

# build the project
composer run build

# using the phar
laravel-blade-linter.phar help

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email benjamin.delespierre@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.