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

  1. Immutability: Never mutate data; create new instances instead
  2. Pure Functions: Functions should have no side effects and return consistent outputs for same inputs
  3. Higher-Order Functions: Use map, filter, reduce, and other collection operations
  4. Function Composition: Combine small functions to build complex behavior
  5. Avoid Global State: Minimize use of facades and static helpers in core logic
  6. Type Safety: Use PHP type declarations and value objects

Best Practices

Declare Strict Types

Always enable strict typing in PHP files:

Installs
1
Repository
imsus/skills
First Seen
13 days ago
laravel-fp — imsus/skills