motomedialab/boilerplate
Composer 安装命令:
composer require motomedialab/boilerplate
包简介
Boilerplate setup
README 文档
README
This is a boilerplate to be installed on a Laravel project. It enforces coding standards and sets up code analysis and formatting tools automatically.
Installation
Install the package as a development dependency in your Laravel project:
composer require --dev motomedialab/boilerplate
Important
This package must be installed in the require-dev block. If you attempt to install it in require, the installation will fail to prevent deployment of dev tools to production.
What happens automatically on install:
When you install the package, it hooks into Laravel's package discovery to automatically:
- Copy formatting and analysis configuration stubs to your project root.
- Inject formatting scripts (
format,check, andpreflight) into yourpackage.json. - Install frontend styling and formatting node packages via npm.
PHP Packages
It'll install the following packages for development:
driftingly/rector-laravel- Rector code formattinglarastan/larastan- PHP static analysislaravel/pao- Simplified output for AI testinglaravel/pint- Code formatting for PSR12 standards
JavaScript packages
It'll install the following node packages:
prettierprettier-plugin-bladeprettier-plugin-tailwindcss
Stubs
It'll copy the following stubs into your project:
stubs/phpstan.neonto the root of your projectstubs/rector.phpto the root of your projectstubs/pint.jsonto the root of your projectstubs/.prettierignoreto the root of your projectstubs/.prettierrc.jsonto the root of your project
Installed npm functions
It'll install the following commands in your package.json:
"format": "npx prettier --write resources",
"check": "npx prettier --check resources",
"preflight": "npm run format && ./vendor/bin/rector && ./vendor/bin/phpstan --memory-limit=2G && ./vendor/bin/pint --parallel && ./vendor/bin/pest --parallel"
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-22