defstudio/laravel-tools

由 def:studio 团队制作的 laravel 工具集合


README

安装

您可以通过 Composer 安装此包

composer require defstudio/laravel-tools

设置

发布资源

[待办事项]

开发依赖安装

此外,您还可以为 laravel 项目安装我们推荐的开发依赖

composer require --dev defstudio/laravel-dev-dependencies -W

并在 composer.json 中添加以下脚本

"php-cs-fixer": "php-cs-fixer fix -v --config=./.php-cs-fixer.php",
"lint": "@php-cs-fixer",
"test:lint": "@php-cs-fixer --dry-run",
"test:types": "php ./vendor/bin/phpstan analyse --ansi --memory-limit=-1",
"test:mutation": "./vendor/bin/infection --test-framework=pest --show-mutations",
"test": "php ./vendor/bin/pest --colors=always --parallel",
"update:snapshots": "php ./vendor/bin/pest --colors=always -d --update-snapshots",
"coverage": "php ./vendor/bin/pest --coverage",
"test:all": [
    "@test:lint",
    "@test:types",
    "@test"
]