laravel-packages

Extract reusable Laravel components into standalone packages with PSR-4 autoloading.

1|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/nextplus896/durra-alaseel --skill laravel-packages
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-packages
Source: https://github.com/nextplus896/durra-alaseel/tree/main/.github/skills/claude-laravel/laravel-packages
Command: npx skills add https://github.com/nextplus896/durra-alaseel --skill laravel-packages

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps developers extract reusable Laravel package patterns and standardize packaging practices across projects.

Core Features & Use Cases

  • Guided extraction of reusable Laravel components into standalone packages.
  • Best-practice scaffolding for composer.json, autoloading, tests, and documentation.
  • Use Case: When you reuse code across multiple Laravel projects, create a consistent, maintainable package.

Quick Start

Use the laravel-packages skill to bootstrap a new reusable package for common utilities by following the extraction guide and creating a package folder with src/, tests, and a composer.json.

Frequently Asked Questions about laravel-packages

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

FAQPage Schema
How do I extract reusable Laravel components into a standalone package?

To extract reusable Laravel components into a standalone package, the Skill automates the extraction process by scaffolding a standardized package folder with src/, tests, and a composer.json file.

What is the best way to standardize composer configuration for a Laravel package?

The best way to standardize composer configuration for a Laravel package is by enforcing proper PSR-4 autoloading, a public API, and semantic versioning during the scaffolding process.

How do I enforce documentation standards when creating a Laravel package?

To enforce documentation standards when creating a Laravel package, the Skill applies consistent publishing practices and best-practice scaffolding alongside your reusable code extraction.

Does this approach support automated testing for extracted Laravel components?

Yes, this approach supports automated testing by scaffolding a dedicated tests directory and enforcing standardized package structures for your extracted Laravel components.

When do I need to extract code into a Laravel package?

You need to extract code into a Laravel package when you require cross-project code reuse and want to maintain a consistent, maintainable package structure across multiple Laravel projects.