adiachenko/starter-kit-laravel

The skeleton application for the Laravel framework.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:project

pkg:composer/adiachenko/starter-kit-laravel

v0.2.0 2026-02-11 12:17 UTC

This package is auto-updated.

Last update: 2026-02-11 12:19:05 UTC


README

What's Different from the Official Laravel Starter

  • PHP >=8.4 baseline with declare(strict_types=1) enforced by Pint.
  • The default boilerplate is lean and backend/API-friendly rather than frontend-scaffold-heavy.
  • AppServiceProvider comes preconfigured with useful safeguards like immutable dates and stricter Eloquent.
  • Models are unguarded by default because I trust my validation more than my memory to keep $fillable in sync.
  • Tooling is already wired: Pest (parallel tests), PHPStan + Larastan at max level, and Rector for refactors.
  • Laravel Boost is included during setup and appropriate .gitignore rules for it are supplied by default.
  • SQLite is set as the default database, offering a clean, minimal starting point that you can easily customize for your preferred database setup.
  • Formatting is consistent out of the box: Pint for PHP and Prettier for everything else.

Installation

Create application (replace example-app with desired project name):

composer create-project adiachenko/starter-kit-laravel --prefer-dist example-app

Keep in mind that composer create-project already does most of the setup for you. It will install dependencies, create .env file, generate app key, and prompt you to configure Laravel Boost.

Navigate to your project and complete the setup:

cd example-app

# Initialize git repo
git init
sh install-git-hooks.sh

# Optionally, scaffold API routes with Sanctum or Passport (add --passport flag)
php artisan install:api

Installed Git hooks:

  • pre-commit runs composer format
  • pre-push runs composer analyse

If you use Fork and hooks misbehave, see this issue.

Development Commands

Command Purpose
composer test Run the test suite (pest --compact --parallel).
composer format Run Laravel Pint and Prettier formatting.
composer analyse Run static analysis (phpstan).
composer refactor Apply Rector refactors.
composer coverage Run tests with local coverage (pest --coverage).
composer coverage:herd Run coverage via Laravel Herd tooling.

PhpStorm Setup

Recommended setup for consistent formatting:

  • Settings | Editor | Code Style: ensure "Enable EditorConfig support" is checked.
  • Settings | PHP | Quality Tools | Laravel Pint: use ruleset from pint.json
  • Settings | PHP | Quality Tools: set Laravel Pint as external formatter
  • Settings | Tools | Actions on Save: enable reformat on save
  • Settings | Languages & Frameworks | JavaScript | Prettier: use automatic config, enable "Run on save", and prefer Prettier config. Include md in Prettier file extensions.

VSCode/Cursor Setup

VSCode and Cursor will automatically detect formatting settings defined in the .vscode/ folder – no additional setup is needed beyond installing the suggested extensions.