0066-laravel-ports-and-adapters

Community

Decouple vendor integrations with ports

AuthorMrJmpl3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It helps you avoid tight coupling between your Laravel app and external vendor SDKs by forcing integrations to flow through stable interfaces, making future provider swaps safer and less disruptive.

Core Features & Use Cases

  • Port-first design: Define PHP interfaces that express only what your application needs, keeping domain code portable.
  • Per-provider adapters: Wrap each external provider’s SDK quirks inside dedicated adapter implementations.
  • Composition-edge selection: Choose the active adapter at the configuration/composition boundary (e.g., via environment or service container bindings).

Quick Start

Ask an AI to outline a Laravel implementation that defines a MailPort interface, creates SES and SMTP adapters, and binds the correct adapter in a service provider using config('mail.driver').

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 0066-laravel-ports-and-adapters
Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0066-laravel-ports-and-adapters

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.