simaocurado / blank-tweaked-laravel-react-starter-kit
The skeleton application for the Laravel framework.
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:TypeScript
Type:project
Requires
- php: ^8.2
- inertiajs/inertia-laravel: ^2.0
- laravel/framework: ^12.0
- laravel/tinker: ^2.10.1
- laravel/wayfinder: ^0.1.11
Requires (Dev)
- fakerphp/faker: ^1.23
- laravel/pail: ^1.2.2
- laravel/pint: ^1.18
- laravel/sail: ^1.41
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.6
- pestphp/pest: ^4.1
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/phpstan: ^2.1
- rector/rector: ^2.1
README
Laravel starter kit preconfigured with React (Inertia.js),with a few tweaks like PHPStan, Rector, Pest, Pint, and Pail. Designed to give you a ready-to-use development environment for modern Laravel projects.
Features
- ✅ Laravel 12+
- ✅ Inertia.js for React integration
- ✅ PHPStan for static analysis
- ✅ Rector for automated code refactoring & upgrades
- ✅ Pest for testing
- ✅ Laravel Pint for code styling
- ✅ Pail for logging and monitoring queues
- ✅ SQLite database setup for fast local development
- ✅ Ready-to-use Composer scripts for automation
Installation
Create a new project using Composer:
composer create-project simaocurado/blank-tweaked-laravel-react-starter-kit my-app cd my-app npm install && npm run dev
The project will automatically:
- Generate
.env
from.env.example
- Generate an application key
- Create
database/database.sqlite
- Run initial migrations
- Copy
phpstan.neon.dist
tophpstan.neon
Development
Run the full development environment:
composer dev
For server-side rendering:
composer dev:ssr
Run tests with Pest:
composer test
Static Analysis & Refactoring
- PHPStan (static analysis):
vendor/bin/phpstan analyse
- Rector (automatic code refactoring):
vendor/bin/rector process app
Configuration
- PHPStan config:
phpstan.neon.dist
→ copied tophpstan.neon
- Rector config:
rector.php
(already in root, no copy needed)
You can customize these files as needed.
Recommended Workflow
- Create a project with Composer (
create-project
). - Run
composer dev
to start development environment. - Use
vendor/bin/phpstan analyse
andvendor/bin/rector process
to maintain code quality. - Write tests with Pest and keep code formatted with Pint.
Requirements
- PHP 8.2+
- Composer 2.x
- Node.js 18+ (for frontend assets)
Contributing
Contributions are welcome! Feel free to fork the repo, make improvements, and submit a pull request.