This skill automates the creation of 'Fake' or InMemory repository implementations for PHP applications, specifically designed for architectures like DDD, Hexagonal, and Clean Architecture. By generating boilerplate-free code that utilizes internal array storage, it allows developers to run tests without database dependencies. This ensures rapid test execution, complete isolation between test runs, and deterministic behavior. The skill handles interface implementation, CRUD operations, complex filtering logic, and provides built-in test helpers to simplify state management during test cycles.
Key Features
01Supports complex query logic via array_filter and pagination
02Automatically matches existing repository interface signatures
03Includes built-in test cleanup methods like clear() and count()
0445 GitHub stars
05Implements full CRUD operations using internal array storage
06Generates PHP 8.4 compatible InMemory repository classes