Search by

juaniquillo / laravel-package-template

juaniquillo

Opinionated starting point for a Laravel package.

Package info

github.com/juaniquillo/laravel-package-template

pkg:composer/juaniquillo/laravel-package-template

Statistics

Installs: 11

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.3 2026-11-19 21:45 UTC

This package is auto-updated.

Last update: 2026-11-19 21:46:04 UTC


README

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.