Repository navigation
This commit introduces the first version of php-requestkit, a powerful library for defining, processing, and validating HTTP request data in PHP applications.
The library is built around the concept of a Schema, which defines the expected data structure, types, and validation rules. It provides a robust and fluent API to handle the entire lifecycle of request data, from input processing to object hydration.
Key Features :
- Fluent and expressive API for schema definition.
- Automatic schema generation from PHP objects.
- Support for JSON, form-data, and query parameter inputs.
- Rich type system with built-in validation (email, date, numeric, etc.).
- Hydration of validated data into strongly-typed objects.
- "Patch mode" for partial data validation.
- Header validation capabilities.
- Performance caching for generated object definitions