laravel-package-scaffold

Generate a Laravel package scaffold with ServiceProvider, Facade, Config, and tests.

35|11|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/mwguerra/claude-code-plugins --skill laravel-package-scaffold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-package-scaffold
Source: https://github.com/mwguerra/claude-code-plugins/tree/main/laravel-filament-package-development-specialist/skills/laravel-package
Command: npx skills add https://github.com/mwguerra/claude-code-plugins --skill laravel-package-scaffold

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill scaffolds a Laravel package skeleton including ServiceProvider, Facade, Config, and tests.

Core Features & Use Cases

  • Create ServiceProvider and main class
  • Optional Facade and Config
  • Pest testing scaffolding and CI integration

Quick Start

Scaffold a new package with pest testing and a sample config.

Frequently Asked Questions about laravel-package-scaffold

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a complete Laravel package with ServiceProvider and Facade?

Scaffold a Laravel package by providing a vendor/name input to automatically generate ServiceProvider, Facade, Config files, and test structure. The Skill creates a complete PSR-4 autoloaded package skeleton with composer.json, Laravel discovery configuration, and optional Pest testing setup ready to extend.

Can I use this to create a Laravel package with Pest testing and CI integration?

Yes, this scaffolds Laravel packages with optional PestPHP testing and CI integration. It generates test files, Orchestra Testbench dev dependencies, and testing infrastructure alongside your ServiceProvider, Facade, and publishable config files.

What does a Laravel package scaffold include for PHP 8.2 and Laravel 11/12 compatibility?

The scaffold generates composer.json with PHP ^8.2 requirement, Laravel framework compatibility for versions 11 and 12, PSR-4 autoloading configuration, Laravel package discovery, ServiceProvider class, main package class, optional Facade, and publishable config—all ready for immediate extension.

Do I need to manually write the ServiceProvider and config files for a new Laravel package?

No, this automates the creation of ServiceProvider, main package class, optional Facade, and publishable config files. You provide vendor/name input and receive a complete, ready-to-extend skeleton with proper Laravel package structure and PHP 8.2+ requirements.

How do I set up a Laravel package with an install command and facade alias?

The scaffold generates optional Facade and install command scaffolding as part of the package structure. It creates the necessary ServiceProvider bindings and configuration files to support both facade alias registration and custom install commands within your Laravel package.

What Laravel versions and PHP versions does package scaffolding support?

Package scaffolding supports Laravel 11 and 12 with PHP ^8.2 minimum requirement. The generated composer.json includes framework compatibility constraints and optional dev dependencies for Pest and Orchestra Testbench for testing environments.