justchr1s/starter-kit

A modern Laravel starter kit with pre-configured tools for development, testing, linting, and refactoring to kickstart your projects quickly.

v1.0.1 2025-08-31 01:59 UTC

This package is not auto-updated.

Last update: 2025-08-31 23:58:18 UTC


README

A modern Laravel Starter Kit built to speed up development with a clean structure, powerful tools, and developer-friendly commands. This project is based on Laravel 12 and comes with everything you need to start building production-ready applications fast.

✨ Features

  • ⚑ Fast local development β†’ concurrent processes for Laravel, queues, logs, and Vite.
  • 🧩 IDE support β†’ better autocompletion with Laravel IDE Helper.
  • 🧹 Automatic code formatting β†’ Laravel Pint & ESLint.
  • 🧠 Static analysis & type safety β†’ powered by Larastan (PHPStan).
  • πŸ§ͺ Testing setup β†’ Pest included with parallel support.
  • πŸ”„ Automated refactoring β†’ Rector integration.
  • πŸ› Debugging made easy β†’ Telescope & Laradumps pre-installed.
  • πŸ“Š Code quality checks β†’ typos, linting, types, and refactor tests.

πŸ“¦ Prerequisites

Before installing, ensure you have the following installed:

  • PHP >= 8.2
  • Composer >= 2.5
  • Node.js >= 18
  • npm >= 9
  • MySQL or PostgreSQL (optional for local development)
  • Git

πŸš€ Installation

Option 1 β€” Recommended (Fastest) βœ…

Install a new Laravel project directly with the starter kit

laravel new my-app --using justchr1s/starter-kit
cd my-app

That’s it! Your project is ready to go πŸš€

Option 2 β€” Manual Installation

If you prefer cloning manually

git clone https://github.com/justchr1s/starter-kit.git my-app
cd my-app
composer install
npm install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed

πŸ›  Available Commands

This starter kit comes with custom Composer scripts to simplify your workflow.

πŸ“Œ Development

composer dev

Starts everything you need for local development in parallel :

  • Laravel server β†’ php artisan serve
  • Queue listener β†’ php artisan queue:listen
  • Log watcher β†’ php artisan pail
  • Vite β†’ npm run dev

🧩 IDE Helpers

composer ide

Generates IDE helpers for:

  • Model metadata.
  • Helper functions.
  • Better autocompletion in your IDE.

🧹 Linting & Code Style

composer lint

Runs:

  • Laravel Pint β†’ PHP code formatting.
  • ESLint β†’ JavaScript/Vue code linting.

To automatically fix issues:

composer fix

This also:

  • Generates IDE helpers.
  • Runs PHPStan for types.
  • Applies Rector refactors.
  • Fixes PHP & JS code style.

πŸ§ͺ Testing

Run all tests

composer test

Run unit tests only

composer test:unit

Run unit tests with coverage

composer test:unit:coverage

Check for code typos

composer test:typos

πŸ”Ž Static Analysis

composer test:types

Uses PHPStan (via Larastan) to detect type-related issues.

If you want to regenerate the baseline:

composer phpstan-baseline

πŸ”„ Refactoring

composer refactor

Automatically refactors your codebase using Rector .

πŸ§ͺ Test Your Refactors

composer test:refactor

Runs Rector in dry-run mode to preview refactoring changes before applying them.

πŸ“‚ Project Structure

starter-kit/
β”œβ”€β”€ app/
β”œβ”€β”€ bootstrap/
β”œβ”€β”€ config/
β”œβ”€β”€ database/
β”œβ”€β”€ public/
β”œβ”€β”€ resources/
β”œβ”€β”€ routes/
β”œβ”€β”€ storage/
└── tests/

πŸ§‘β€πŸ’» Recommended Workflow

# Start development environment
composer dev

# Run migrations
php artisan migrate

# Run tests before pushing changes
composer test

# Fix code style & refactor automatically
composer fix

# Update IDE helpers for better autocompletion
composer ide

πŸ›  Included Packages

Package Purpose
laravel/telescope Debugging & monitoring
laradumps/laradumps Real-time debugging in terminal
barryvdh/laravel-ide-helper Better IDE autocompletion
laravel/pint Automatic PHP code formatting
larastan/larastan PHPStan integration for type safety
pestphp/pest Simple & fast testing framework
rector/rector Automated code refactoring
peckphp/peck Detect typos in code

🀝 Contributing

Contributions are welcome!

Feel free to fork the repository, create a branch, and submit a pull request.

πŸ“„ License

This project is released under the MIT License .

πŸ™ Acknowledgements

This starter kit was inspired by Josh Cirre's Fission.
A huge thanks to Josh for his amazing work and contributions to the Laravel community.

πŸ’‘ Tips

  • Always run composer fix before committing.
  • Use composer test to validate your changes.
  • Check your IDE helpers regularly with composer ide.
  • Use Telescope & Laradumps to debug faster.

πŸ›‘οΈ Badges

You can add these to make the README more visual:

Laravel PHP Tests Code Quality License