laravel-fp
Installation
SKILL.md
Laravel Functional Programming Guide
This skill guides agents to write Laravel applications using functional programming (FP) principles while respecting Laravel's conventions.
Core Principles
- Immutability: Never mutate data; create new instances instead
- Pure Functions: Functions should have no side effects and return consistent outputs for same inputs
- Higher-Order Functions: Use map, filter, reduce, and other collection operations
- Function Composition: Combine small functions to build complex behavior
- Avoid Global State: Minimize use of facades and static helpers in core logic
- Type Safety: Use PHP type declarations and value objects
Best Practices
Declare Strict Types
Always enable strict typing in PHP files: