Looking to hire Laravel developers? Try LaraJobs

laravel-package-template maintained by juaniquillo

Description
Opinionated starting point for a Laravel package.
Last update
2026/11/19 22:45 (dev-main)
License
Downloads
11

Comments
comments powered by Disqus

Laravel Package Template

CI Latest Version License PHP Laravel

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 12 or 13 (used by Testbench; the package itself only requires illuminate/contracts and illuminate/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.