Search by

pepperfm / laravel-starter-kit

PepperFM

The skeleton application for the Laravel framework.

Package info

github.com/pepperfm/laravel-starter-kit

Type:project

pkg:composer/pepperfm/laravel-starter-kit

Statistics

Installs: 40

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

dev-master 2026-12-01 17:01 UTC

README

Latest Version on Packagist Total Downloads

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

๐Ÿ“ฆ 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.
  • .env is prepared for host connections, while config/database.php resolves 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=pgsql does 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 run starter:setup manually instead. The starter's --no-migrate flag 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

๐Ÿ“š Useful Links