mamago11/laravel-starter-kit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mamago11/laravel-starter-kit

最新稳定版本:v1.0.0

Composer 安装命令:

composer create-project mamago11/laravel-starter-kit

包简介

The skeleton application starter kit for Laravel framework.

README 文档

README

An opinionated Laravel 12 starter kit with a pre-configured development toolchain for building robust, type-safe applications.

Stack

Layer Package Version
Framework Laravel 12
PHP PHP 8.5
Database MySQL 8.4
Frontend Tailwind CSS 4
Bundler Vite 7
Testing Pest 4
Static Analysis PHPStan + Larastan 2 / 3
Code Style Laravel Pint 1
Refactoring Rector 2
Development Laravel Sail 1
Logging Laravel Pail 1

Requirements

  • Docker & Docker Compose (for Sail)

Getting Started

composer run setup

This will install dependencies, generate the app key, run migrations, and build frontend assets.

To start the full development environment (server, queue, logs, Vite HMR):

composer run dev

Or with Sail:

./vendor/bin/sail up -d
./vendor/bin/sail composer run dev

Available Scripts

Composer

Command Description
composer run dev Start server, queue worker, Pail log viewer, and Vite dev server concurrently
composer run test Clear config cache and run the test suite
composer run analyse Run Rector, Pint, and PHPStan in sequence
composer run rector Run Rector automated refactoring
composer run pint Run Laravel Pint code formatter
composer run stan Run PHPStan static analysis
composer run setup Full project setup from scratch

NPM

Command Description
npm run dev Start Vite dev server
npm run build Build frontend assets for production

Toolchain Configuration

PHPStan (phpstan.neon)

  • Level: 6
  • Larastan extension enabled for Laravel-aware analysis
  • Paths analysed: app/, routes/, database/
  • Extra checks: uninitialized properties, missing callable signatures, PHPDoc types treated as certain

Pint (pint.json)

  • Preset: laravel
  • Additional rules: strict types declaration, short array syntax, fully qualified imports, explicit string variables, aligned multiline comments

Rector (rector.php)

  • PHP target: 8.5
  • Laravel sets: code quality, collections, facade aliases to full names, Eloquent query builder, factories, container string to FQCN, array/string helpers to static calls
  • Prepared sets: dead code removal, code quality, coding style, type declarations, privatization, early return

Pest (tests/)

  • Plugins: pest-plugin-laravel, pest-plugin-type-coverage
  • PHPUnit 12 under the hood

Docker (Sail)

  • App container: PHP 8.5
  • Database: MySQL 8.4
  • A separate testing database is automatically created by the MySQL entrypoint script
  • Xdebug support via SAIL_XDEBUG_MODE environment variable

License

MIT

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-05