fabpl/laravel-preset

Laravel 的有意见的编码预设

1.0.1 2024-10-02 19:48 UTC

This package is auto-updated.

Last update: 2024-10-02 19:50:40 UTC


README

Laravel Preset 是 Laravel 的有意见的编码预设。

功能

要求

Laravel Preset 运行需要以下内容

  • PHP 8.2+
  • Laravel v11.0+

安装

由于这些命令将覆盖您应用程序中现有的文件,请在新的 Laravel 项目中运行此命令!

使用 Composer 需求 Laravel Preset 包

composer require fabpl/laravel-preset --dev

php preset:install

用法

安装 Laravel Preset 包后,此命令将可用

# Run PHPStan
composer analyze

# Run all the tools
composer check

# Run the coverage test suite
composer coverage

# Lint the code using Pint
composer lint

# Refactor the code using Rector
composer refactor

# Run the test suite
composer test