Phodam is inspired by PODAM.
Phodam is a PHP library used to generate randomly populated objects for unit tests.
New to Phodam? Start with the Quick Start Guide
- Quick Start Guide - Get started in minutes
- Initializing Phodam - Setting up Phodam
- Automatic Type Analysis - How Phodam automatically analyzes your classes
- Primitive Types - Generating
int,float,string,bool - Built-in Types - Working with
DateTime,DateTimeImmutable, etc. - Enum Types - Generating PHP 8 enum values
- Associative Arrays - Creating structured arrays
- Definition-based Type Providers - Specifying field types
- Custom Type Providers - Full control over object creation
- Named Providers - Multiple ways to generate the same type
- Breaking Circular References - How to break Circular References with Providers