# Strictify > A type-hint validation library for PHP Strictify is a Pydantic-inspired data-validation system for PHP 8.3+ that validates raw data against class type hints: a model's public property types are the schema, with no YAML and no config files. It ships as two interchangeable packages sharing one `Attributes\Strictify` API: the pure-PHP Composer library `attributes-php/strictify` (`composer require attributes-php/strictify`) for the widest compatibility, and the C extension `attributes-php/strictify-ext` (`pie install attributes-php/strictify-ext`, roughly an order of magnitude faster) for hosts you control. Core entry points: `Attributes\Strictify\validate()` hydrates a `BaseModel` from an array and throws `ValidationException` on invalid data, `BaseModel::toDict()` serializes a model back to an array, and `Attributes\Strictify\call()` invokes any callable with validated model parameters. Models are configured with `#[ModelConfigs]`, values are constrained with the constraint attributes, and failures are reported per field path via `ValidationException::getErrors()`. Source code: library https://github.com/Attributes-PHP/strictify, extension https://github.com/Attributes-PHP/strictify-ext ## Getting started - [Overview](): Overview: what Strictify is, the library and extension packages, how validation works, requirements and installation - [Quickstart](): Install Strictify (Composer library or PIE extension), define a first model and validate data in under a minute ## Guides - [Validating payloads](): How validate() checks raw data: required fields, strict vs loose mode, return semantics, backed and pure enums, validation hooks - [Nested models and arrays](): Nested BaseModel properties and typed arrays with Sequence, Union, Intersection and Dict - [Aliases and aliasGenerator](): Accept differently-named input keys with #[Alias] and the ModelConfigs aliasGenerator - [Error messages](): Customize error messages per property with ErrorMessage, or translate them all with ErrorTranslator - [Sensitive data](): Keep secrets out of toDict() output, error messages and dumps with #[Sensitive] - [Calling functions](): Invoke any callable with validated model parameters and injected dependencies using call() - [Serializing models](): Turn a hydrated model back into a plain array with toDict() ## Reference - [validate()](): validate(): signature, parameters, return value, exceptions and the validation rules - [toDict()](): BaseModel::toDict(): array serialization, field names, useAlias, DateTime formatting, nesting - [call()](): call(): model hydration, dependency injection and lazy containers - [ModelConfigs](): #[ModelConfigs]: every option, its default, inheritance rules and resolved-config getters - [Constraints](): Built-in constraint attributes grouped by category, and how to write custom constraints - [Exceptions](): Exceptions Strictify throws: ValidationException and getErrors(), plus error cases - [API](): Generated API reference: functions, classes, attributes and enums, built from stubs/*.stub.php ## Resources - [Benchmarks](): Benchmark suite and measured comparison: the extension and the pure-PHP library vs Symfony Validator, Respect/Validation and Laravel - [FAQ](): Frequently asked questions: library vs extension, strict vs loose mode, extra keys, error paths, hooks, performance - [Changelog](): Release notes, newest first