Download the PHP package jptagorda/laravel-package-starterkit without Composer
On this page you can find all versions of the php package jptagorda/laravel-package-starterkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jptagorda/laravel-package-starterkit
More information about jptagorda/laravel-package-starterkit
Files in jptagorda/laravel-package-starterkit
Package laravel-package-starterkit
Short Description A Laravel package starterkit with action-based architecture, contracts, and strict conventions
License MIT
Informations about the package laravel-package-starterkit
Laravel Package Starterkit
A production-ready Laravel package template with action-based architecture, strict conventions, and comprehensive tooling.
Overview
This starterkit provides a solid foundation for building Laravel packages that follow best practices:
- Action-based architecture for predictable state mutations
- Contract-driven design for testability and flexibility
- Value objects for type-safe, immutable data
- Pest + Orchestra Testbench for robust testing
- Pre-configured tooling (Pint, Prettier, PHPUnit)
Requirements
- PHP 8.4+
- Laravel 12+
- Composer 2.0+
Installation
Install the starterkit in your Laravel application:
Quick Start
Create a New Package
Use the Artisan command to scaffold a new package:
Example:
This creates a fully configured package at packages/acme/billing/ with:
- Service provider with auto-discovery
- Exception hierarchy
- Test infrastructure (Pest + Orchestra Testbench)
- Configuration file
- Documentation stubs
- Code style configs (Pint, Prettier)
Command Options
After Scaffolding
Add to Root composer.json
Add the package as a path repository:
Then require it:
Generated Structure
Architecture Guidelines
Actions
All state mutations flow through Action classes:
Contracts
Define behavior through interfaces:
Value Objects
Immutable data with constructor validation:
Exceptions
Use specific, contextual exceptions:
Package Commands
Inside your generated package:
| Command | Description |
|---|---|
composer test |
Run Pest tests |
composer format |
Format code with Pint |
Configuration
Generated config files follow these rules:
- All keys have explicit defaults (no nulls)
- Keys use
snake_case - Maximum 3 levels of nesting
- Config declares policy, not logic
Testing
Tests use Pest with Orchestra Testbench:
Code Style
- PHP: Laravel Pint (PSR-12 + Laravel preset)
- JS/JSON/MD: Prettier
Run formatters:
Alternative: Manual Setup
If you prefer to clone the starterkit directly:
Then manually update:
composer.json- package name, namespace- Service provider - rename and update namespace
- Config file - rename
- Test files - update namespaces
License
MIT