juaniquillo / laravel-package-template
Opinionated starting point for a Laravel package.
Package info
github.com/juaniquillo/laravel-package-template
pkg:composer/juaniquillo/laravel-package-template
Requires
- php: ^8.3
- illuminate/contracts: ^12.0||^13.0
- illuminate/support: ^12.0||^13.0
Requires (Dev)
- larastan/larastan: ^3.9
- laravel/pint: ^1.29
- orchestra/testbench: ^10.0||^11.0
- pestphp/pest: ^4.6||^5.0
- pestphp/pest-plugin-laravel: ^4.0||^5.0
- pestphp/pest-plugin-type-coverage: ^4.0||^5.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.2
- rector/rector: ^2.6
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
An opinionated starting point for a Laravel package: Pest, Larastan level 9, Rector,
Laravel Pint, Orchestra Testbench with a workbench app, a single GitHub Actions matrix, and
AI-first documentation (AGENTS.md plus skills for Laravel Boost and other agent harnesses).
Using this template
Read GUIDE.md for the full walkthrough: creating a package, what configure.php
rewrites, the post-setup checklist, releasing, CI and troubleshooting.
Quick start:
composer create-project juaniquillo/laravel-package-template acme-widgets
cd acme-widgets
php configure.php
Then install and verify:
composer install composer qa
Requirements
- PHP
^8.3 - Laravel
12or13(used by Testbench; the package itself only requiresilluminate/contractsandilluminate/support)
Installation
composer require juaniquillo/laravel-package-template
The service provider is auto-discovered:
Juaniquillo\LaravelPackageTemplate\LaravelPackageTemplateServiceProvider::class
Usage
// Document the package's public API here.
Testing
composer qa # analyse → rector:check → lint:check → test:types → test:unit composer test:unit # Pest only (no --parallel on Windows) composer test:types # 100% type coverage gate
Workbench
A disposable Laravel app lives in workbench/:
composer build composer serve
AI skills
php artisan boost:add-skill https://github.com/juaniquillo/laravel-package-template
Structure
| Path | Purpose |
|---|---|
src/ |
Package source (Juaniquillo\LaravelPackageTemplate) |
tests/ |
Pest feature, unit and architecture tests |
workbench/ |
Disposable Laravel app powered by Orchestra Testbench |
.agents/skills/, resources/boost/skills/ |
AI skills for Laravel code and for working on this package |
Changelog
See CHANGELOG.md.
Contributing
Run composer qa before opening a pull request.
License
MIT. See LICENSE.md.