Skip to content

v1.0.0 Initial Release

Latest

Choose a tag to compare

@Maatify Maatify released this 05 Mar 13:16

🚀 Initial Release

This is the first public release of maatify/validation.

The library provides a schema-based validation system for PHP built on top of Respect/Validation, designed for clean architecture and strict static analysis.

✨ Features

  • Schema-driven validation
  • Validation result DTO
  • Enum-based error codes
  • Reusable validation rules
  • Pagination and query validation helpers
  • Framework-agnostic design
  • Compatible with PHPStan level max

📦 Installation

composer require maatify/validation

🧩 Example

use Maatify\Validation\Validator\RespectValidator;
use Maatify\Validation\Schemas\AuthLoginSchema;

$validator = new RespectValidator();
$schema = new AuthLoginSchema();

$result = $schema->validate($input);

if (!$result->isValid()) {
    // handle validation errors
}

📄 License

MIT License.