somoscuatro / tetra-starter-laravel
An opinionated Laravel starter kit to build modern web applications.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Blade
Type:project
pkg:composer/somoscuatro/tetra-starter-laravel
Requires
- php: ^8.4
- laravel/framework: ^12.0
- laravel/horizon: ^5.40
- laravel/nightwatch: ^1.19
- laravel/tinker: ^2.10.1
Requires (Dev)
- barryvdh/laravel-debugbar: ^3.16
- barryvdh/laravel-ide-helper: ^3.6
- driftingly/rector-laravel: ^2.1
- fakerphp/faker: ^1.23
- larastan/larastan: ^3.8
- laravel/boost: ^1.8
- laravel/pail: ^1.2.2
- laravel/pint: ^1.24
- laravel/sail: ^1.41
- laravel/telescope: ^5.15
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.6
- peckphp/peck: ^0.2.0
- pestphp/pest: ^4.1
- pestphp/pest-plugin-browser: ^4.1
- pestphp/pest-plugin-laravel: ^4.0
- pestphp/pest-plugin-profanity: ^4.2
- pestphp/pest-plugin-stressless: ^4.0
- pestphp/pest-plugin-type-coverage: ^4.0
- rector/rector: ^2.2
- ryoluo/sail-ssl: ^1.4
README
TetraStarter for Laravel is a batteries-included Laravel 12 starter kit designed for high-quality, scalable, maintainable apps. It includes curated tools for development, debugging, refactoring, testing, and frontend productivity — all preconfigured so you can start building immediately.
Important
This is an opinionated Laravel starter kit created by somoscuatro team. While PRs are welcome, this is designed to fit the needs of one specific team.
Included Packages
This starter kit includes a curated selection of packages to enhance development productivity and code quality.
Core Framework & Environment
- Laravel 12
- Laravel Sail — Docker-based local development
- Sail SSL — Local HTTPS for Sail
Tip
Please notice that since we are using Sail SSL for local development, it might be necessary to trust the self-signed certificate in your OS/browser.
Debugging & Productivity
- Laravel Telescope — Debugging and insight for local environments
- Laravel Horizon — Queue management with Redis
- Laravel Debugbar — Debugging toolbar
- Laravel IDE Helper — Improved IDE support
- Laravel Boost — AI-assisted development
Code Quality & Refactoring
- Rector — Automated code refactoring
- Laravel Pint — PHP code style enforcement
- Prettier — JS/CSS code style enforcement
- Larastan — Static analysis for Laravel
- Peck — Typos checking
Testing
- Pest — Elegant PHP testing framework
- Pest Plugins — Browser Testing, Type Coverage, Stress Testing, Profanity
- Laravel Nightwatch — First-class monitoring for Laravel applications
Frontend
- Tailwind CSS — Utility-first CSS framework
- Vite — Fast frontend build tool
Installation
Tip
This starter kit uses Laravel Sail, So Docker is required. We recommend Orbstack on macOS for the best Docker experience.
Tip
For convenience, we suggest you to set up this alias in your shell: alias sail='bash vendor/bin/sail'.
Option 1: Laravel Installer (Recommended)
Use the Laravel installer to create a new project:
laravel new --using=somoscuatro/tetra-starter-laravel
Option 2: Manual Setup
-
Clone the repository:
git clone https://github.com/somoscuatro/tetra-starter-laravel.git && cd tetra-starter-laravel -
Install Composer dependencies:
docker run --rm \ -u "$(id -u):$(id -g)" \ -v "$(pwd):/var/www/html" \ -w /var/www/html \ laravelsail/php84-composer:latest \ composer install --ignore-platform-reqs -
Create .env file:
cp .env.example .env -
Setup the project:
sail composer run setup -
Build assets
sail bun run build -
Run migrations and seed the database
sail artisan migrate:fresh --seed
Composer Commands
composer run setup— Install dependencies, setup environment, migrate, build assets, generate IDE helperscomposer run lint— Run Pint and JS lintcomposer run format— Format PHP and JS codecomposer run refactor— Run Rector for code upgradescomposer run test— Run all tests (unit, type coverage, profanity)composer run dev— Start development servers (PHP, queue, logs, Vite)
Have a look at composer.json for the
full list of commands.
License
This starter kit is open-sourced software licensed under the MIT license.