php-saloon

Installation
SKILL.md

php-saloon

Use this skill when building or debugging PHP API integrations and SDKs with Saloon, including connectors, requests, authentication, request bodies, testing, pagination, Laravel integration, and plugin workflows.

Rules

Standalone API Clients

  • Start with references/standalone-sdk-guidance.md and references/building-sdks.md.
  • Build the SDK around a Saloon Connector, and keep it easy to expand with resource classes, request classes, and strongly typed DTOs.
  • Always use strongly typed DTOs for responses. Prefer github.com/Crell/Serde for response DTO serialization.
  • If a request needs more than 2 or 3 parameters, or a DTO materially improves DX, use a typed DTO instead of a long parameter list.
  • Everything must be strongly typed. Follow the nearby php-pro skill for PHP typing expectations when it is available.
  • Add docblocks anywhere generics are required.
  • If the API supports authentication, add it. Let developers pass strongly typed auth details instead of loose arrays.
  • Always support pagination if the API supports it.
  • Always add rate limiting.
  • Support caching as an optional dependency, and let developers pass their own cache implementation.
  • Let developers register their own middleware.
Related skills

More from aaronflorey/agent-skills

Installs
3
First Seen
Apr 16, 2026