rcrosbourne/laravel-react-starter-kit

An opinionated Laravel 13 + React starter kit for Herd. Bun, Postgres, optional teams, 100% test coverage.

Maintainers

Package info

github.com/rcrosbourne/laravel-react-starter-kit

Language:TypeScript

Type:project

pkg:composer/rcrosbourne/laravel-react-starter-kit

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 14

v1.1.3 2026-04-25 16:14 UTC

README

tests license

An opinionated Laravel 13 + React starter kit for Herd. Bun, Postgres, optional teams, 100% test coverage.

Install

composer create-project rcrosbourne/laravel-react-starter-kit my-app

The post-install hook runs php artisan app:setup, which prompts for teams support and configures .env to match your project directory.

Pass --teams or --no-teams to skip the prompt for non-interactive setups.

What's different from laravel/react-starter-kit?

  • bun-firstbun.lock, no npm.
  • Postgres 17 for dev + test + CI. Test DB derived as <DB_DATABASE>_test.
  • Herd-first — SMTP catcher on 127.0.0.1:2525, served at http://<project>.test.
  • 100% test coverage gate (Pest line + type-coverage) enforced in CI.
  • Strict static analysis — Pint + Rector + PHPStan max + Larastan with bleeding edge.
  • Strict app defaultsModel::shouldBeStrict(), Date::use(CarbonImmutable::class), DB::prohibitDestructiveCommands(isProduction).
  • AI guidelines generated by laravel/boost (CLAUDE.md, AGENTS.md, etc.).
  • Optional teams — switcher, invites, owner/member roles, settings page.

Daily commands

Command What it does
composer dev queue + pail + vite (Herd serves the app)
composer test type-coverage + unit + lint + types (CI path, xdebug)
composer test:coverage local coverage via Herd
composer lint apply Rector + Pint + ESLint fixes
composer test:lint dry-run lint check

See docs/PHILOSOPHY.md for the opinions behind this kit.

License

MIT.