nunomaduro/laravel-starter-kit
소개
Laravel Starter Kit은 코드 품질과 타협하지 않는 개발자를 위해 설계된, 매우 엄격하고 타입 안전한 Laravel 스켈레톤입니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original- Blade (this project) version: github.com/nunomaduro/laravel-starter-kit
- Inertia & React version: github.com/nunomaduro/laravel-starter-kit-inertia-react
- Inertia & Vue version: github.com/nunomaduro/laravel-starter-kit-inertia-vue
Laravel Starter Kit is an ultra-strict, type-safe Laravel skeleton engineered for developers who refuse to compromise on code quality. This opinionated starter kit enforces rigorous development standards through meticulous tooling configuration and architectural decisions that prioritize type safety, immutability, and fail-fast principles.
Why This Starter Kit?
Modern PHP has evolved into a mature, type-safe language, yet many Laravel projects still operate with loose conventions and optional typing. This starter kit changes that paradigm by enforcing:
- 100% Type Coverage: Every method, property, and parameter is explicitly typed
- Zero Tolerance for Code Smells: Rector and PHPStan at maximum strictness catch issues before they become bugs
- Immutable-First Architecture: Data structures favor immutability to prevent unexpected mutations
- Fail-Fast Philosophy: Errors are caught at compile-time, not runtime
- Automated Code Quality: Pre-configured tools ensure consistent, pristine code across your entire team
- Bun-Powered: Leveraging Bun for blazing-fast dependency management...
- Just Better Laravel Defaults: Thanks to Essentials / strict models, auto eager loading, immutable dates, and more...
This isn't just another Laravel boilerplate—it's a statement that PHP applications can and should be built with the same rigor as strongly-typed languages like Rust or TypeScript.
Getting Started
Requires PHP 8.4+, Bun and a code coverage driver like xdebug**.
Create your type-safe Laravel application using Composer:
composer create-project nunomaduro/laravel-starter-kit --prefer-dist example-app
Initial Setup
Navigate to your project and complete the setup:
cd example-app
# Setup project
composer setup
# Start the development server
composer dev
Optional: Browser Testing Setup
If you plan to use Pest's browser testing capabilities:
bun add playwright
bunx playwright install
Verify Installation
Run the test suite to ensure everything is configured correctly:
composer test
You should see 100% test coverage and all quality checks passing.
Available Tooling
Development
composer dev- Starts Laravel server, queue worker, log monitoring, and Vite+ dev server concurrently
Code Quality
composer lint- Runs Rector (refactoring), Pint (PHP formatting), and Oxfmt (JS/TS formatting)composer test:lint- Dry-run mode for CI/CD pipelines
Testing
composer test:type-coverage- Ensures 100% type coverage with Pestcomposer test:types- Runs PHPStan at level 9 (maximum strictness)composer test:unit- Runs Pest tests with 100% code coverage requirementcomposer test- Runs the complete test suite (linting, static analysis, type coverage, unit tests)
Maintenance
composer update:requirements- Updates all PHP and Bun dependencies to latest versions
License
Laravel Starter Kit was created by Nuno Maduro under the MIT license.
관련 프로젝트 살펴보기
불러오는 중…