pepperfm / laravel-starter-kit
The skeleton application for the Laravel framework.
Package info
github.com/pepperfm/laravel-starter-kit
Type:project
pkg:composer/pepperfm/laravel-starter-kit
Requires
- php: ^8.5
- laravel/framework: ^13.0
- laravel/prompts: ^0.3.5
- laravel/tinker: ^3.0
Requires (Dev)
- fakerphp/faker: ^1.23
- fruitcake/laravel-debugbar: ^4.2
- laramint/laravel-brain: ^2.2
- larastan/larastan: ^3.2
- laravel/boost: ^2.4
- laravel/pao: ^1.0
- laravel/sail: ^1.26
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.6
- pepperfm/ai-guidelines: ^1.5
- pestphp/pest: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- spatie/laravel-ray: ^1.43
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-01 17:01:53 UTC
README
Laravel Starter Kit
A modern, developer-friendly Laravel starter kit featuring a curated selection of tools and a pragmatic setup flow โ ready for production-focused application work from day one.
โจ Features
- Laravel 13, PHP 8.5+ requirement
- Optional custom admin frontend foundation during setup:
- Inertia 3 + Vue 3 + TypeScript
- Nuxt UI 4 + Tailwind CSS 4 (based on Nuxt UI Dashboard primitives, without requiring Nuxt)
- Ziggy, Vue I18n, VueUse, Valibot
- Independently choose API components during setup (none are required together):
- Laravel Sanctum for token authentication and API routes
- Swagger Nuxt UI for API documentation
- spatie/laravel-data for DTOs
- pepperfm/api-responder-for-laravel for response helpers
- Optional observability tools during setup:
- Telegram bot integration via defstudio/telegraph
- Local development environment powered by Laravel Sail
- UUID primary keys for the base user model
- Pre-configured with:
- Pest + Larastan + Laravel PAO for clean and agent-friendly testing
- Laravel Debugbar, Ray, and Pint
๐ฆ Installation
For an interactive installation that configures Host/Sail, the database, frontend
package manager, and real APP_URL before Laravel Installer runs, use the
standalone pepperfm-new launcher:
mkdir -p "$HOME/.local/bin" curl -fsSL https://raw.githubusercontent.com/pepperfm/laravel-starter-kit/master/bin/pepperfm-new \ -o "$HOME/.local/bin/pepperfm-new" chmod +x "$HOME/.local/bin/pepperfm-new" "$HOME/.local/bin/pepperfm-new" example-app
The launcher is a small PHP CLI (no Composer dependencies) that prompts once
for the runtime (Host/Sail), supported database, frontend package manager, and
app URL. It passes explicit database and Node flags to Laravel Installer, and
passes runtime/database connection details to the existing starter:setup
hook. Installer then handles migrations and frontend build once. The hook does
not repeat its runtime question when invoked by the launcher.
Supported database choices: Host: PostgreSQL, MySQL, MariaDB, SQLite; Sail: PostgreSQL and SQLite. Sail PostgreSQL and Redis use independently configurable forwarded ports (initial suggestions 5433/6380), while the web server defaults to host port 8080. With Sail SQLite, the PostgreSQL service is not started. The launcher does not create a host database: provision that database and its credentials before migrations. The Laravel Installer still executes migrations and Node commands on the host in both runtime modes, so the chosen PDO extension and frontend manager must exist on the host.
For development on Flock, enter the actual local domain at the APP_URL
prompt. For php artisan serve, http://localhost:8000 is appropriate.
The launcher restores your explicit URL after Laravel Installer finishes.
For a non-destructive preview, use pepperfm-new example-app --dry-run.
You can still invoke Laravel Installer directly without the launcher:
Requires PHP 8.5, Composer, and the Laravel Installer. For Sail development, also install Docker Compose. The host must have the PostgreSQL PDO extension if you use the command below: Laravel Installer runs its own migrations on the host.
laravel new example-app --using=pepperfm/laravel-starter-kit --database=pgsql
The installer creates the application and initializes its key before invoking the interactive
starter:setup --installer-hook hook. In the hook you can select the host or Sail runtime,
admin frontend, independent API components, and optional observability packages. The plan is shown
before any project files are modified.
During that hook:
- Laravel Installer initially creates the project with host Composer. Optional Composer packages are installed through Sail when selected (after the container starts), or on the host when Host is selected; already-installed packages are skipped.
- Preset files and vendor migrations are published, without running migrations yet.
.envis prepared for host connections, whileconfig/database.phpresolves loopback PostgreSQL/Redis to service names when the application runs under Sail. Custom remote hostnames/URLs and existing non-placeholder credentials are preserved.- If Sail is selected, Docker Compose starts before optional Composer packages are installed and waits for service health. Its full build output is streamed to the terminal.
After that hook, Laravel Installer resumes: it configures APP_URL and the selected
database, runs artisan migrate on the host (for the explicit --database=pgsql flag),
then chooses and installs/builds frontend dependencies. The starter hook deliberately does
not run those stages a second time. Installer supports --npm, --pnpm,
--bun, --yarn and --no-node, but currently defaults to npm even
when another lockfile is present. To use PostgreSQL and Bun together, run
laravel new example-app --using=pepperfm/laravel-starter-kit --database=pgsql --bun.
Database selection: Laravel Installer v5.33.0 does not show a database prompt
for this command: without --database, it selects SQLite and later replaces the
starter's DB_CONNECTION=pgsql (even if .env.example originally specified it).
With --database=pgsql, the database and credentials must already be reachable
from the host because the Installer migrates there. The starter hook cannot
change the parent Installer's database or package-manager options.
Application URL: Laravel Installer defaults to APP_URL=http://localhost:8000
when a project is not recognized as parked by Herd/Valet. This is appropriate
for php artisan serve; change .env to your actual local URL if you use a
local web server or Flock domain. Manual starter:setup prompts for a package
manager when you choose to install frontend dependencies.
Installer limitation:
laravel new ... --database=pgsqldoes not expose a migration opt-out. If you need to review/decline migrations or cannot migrate from the host, create the project with Composer and runstarter:setupmanually instead. The starter's--no-migrateflag applies only to manual setup. See the lifecycle analysis for source references and trade-offs.
The admin preset replaces only pristine Laravel skeleton package.json,
vite.config.js and resources/css/app.css (plus missing files). Customized files are never
overwritten. Re-running setup preserves existing preset files and skips already-installed Composer
requirements. If installation stops partway through, fix the failure and run setup again; it does
not implement transactional rollback.
No GitHub Actions workflow is generated by this starter. Laravel Installer v5.33.0
may print warnings when configuring Pest because it unconditionally tries to edit
.github/workflows/tests.yml; upstream master checks whether that file exists.
There is no need to create a placeholder workflow.
The panel uses Laravel session authentication. Guests visiting /panel are redirected
to /panel/login; failed attempts are rate-limited and logout invalidates the session.
There is no public registration. After migrations, create the first panel user with
php artisan panel:user. Any authenticated application user can currently access the
panel; use policies/roles for production authorization.
โ๏ธ Manual setup
php artisan starter:setup
php artisan starter:setup --preset=api
php artisan starter:setup --preset=admin
php artisan starter:setup --preset=observability
php artisan starter:setup --preset=full
# Prevent post-install Artisan commands, migrations, and Node installation:
php artisan starter:setup --preset=full --no-post --no-migrate --skip-node
Manual setup asks separately whether to run pending migrations and install frontend
dependencies. Use --no-migrate or --skip-node to suppress those steps. A manually
selected Sail runtime still requires host Composer to invoke the setup command,
but optional Composer packages, Artisan and optional frontend commands run inside Sail once healthy.
For manual setup, the frontend package manager is selected interactively. Other
package managers' lockfiles are removed after a successful build.
| Preset | Includes |
|---|---|
api |
Sanctum, Swagger documentation and Laravel Data |
admin |
Inertia + Vue + Nuxt UI panel |
observability |
Log Viewer, Horizon, Pulse, Telescope (dev dependency) |
full |
Admin + API + observability |
Sanctum is installed once using Composer; routes/api.php and the HasApiTokens trait are
set up without invoking install:api, which would run Composer internally.
Horizon, Telescope, Pulse, Telegraph, MediaLibrary and Permissions publish their required
assets/migrations before the migration stage.
For a more detailed execution map, failure behavior, and reproducible smoke tests, read Installer Lifecycle.
๐งช Testing & Quality
make pint # Show unstaged files with codestyle issues make pint-hard # Fix codestyle issues automatically make stan # Run Larastan (static analysis) make test # Run all tests via Pest