magentron/laravel-blade-lint
Composer 安装命令:
composer require magentron/laravel-blade-lint
包简介
Laravel Blade Lint console command
README 文档
README
Laravel console command to check syntax of blade templates.
Requirements
- PHP 5.6 or above
- Laravel 5.4 or above (including Laravel 12)
- PCNTL extension (optional, for multi-process support)
- POSIX extension (optional, for multi-process support)
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\BladeLint\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.
Standard help output:
$ php artisan blade:lint -h
Description:
Laravel Blade Lint - syntax checking of blade templates
Usage:
blade:lint [options] [--] [<path>...]
Arguments:
path
Options:
--debug Enable debug output, which consists of the compiled templates (PHP code)
-p, --processes[=PROCESSES] The number of test processes to run. [default: "auto"]
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
--env[=ENV] The environment the command should run under
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Development
Development of this package requires PHP 8 or higher.
Running Tests
# Install dependencies composer install # Run tests make test # Run tests with coverage report make test-coverage
The coverage report will be generated in build/coverage/.
Static Analysis
# Run all static analysis tools make static-analysis # Individual tools make phpstan make psalm make php-cs-fixer-dry
Reporting bugs/issues
If you find a bug please report a bug on GitHub:
https://github.com/Magentron/laravel-blade-lint/issues.
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/.
magentron/laravel-blade-lint 适用场景与选型建议
magentron/laravel-blade-lint 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 576.52k 次下载、GitHub Stars 达 16, 最近一次更新时间为 2018 年 05 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「console」 「laravel」 「lint」 「blade」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 magentron/laravel-blade-lint 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 magentron/laravel-blade-lint 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 magentron/laravel-blade-lint 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This class provides you with an easy-to-use interface to progress bars.
Generate reports from lint results
A Laravel package to retrieve data from Google Search Console
Additional artisan commands for Laravel
PHP linting rules set used by Opay developers
This is the ZooRoyal coding standard.
统计信息
- 总下载量: 576.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 24
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2018-05-20