comphp/validation

Standalone validation rules, results, and input validation support for PHP applications.

Maintainers

Package info

github.com/commonphp/validation

pkg:composer/comphp/validation

Statistics

Installs: 1

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

0.3 2026-05-17 15:44 UTC

This package is auto-updated.

Last update: 2026-05-17 19:34:19 UTC


README

CommonPHP Validation provides standalone validation rules, results, and input validation support for PHP and CommonPHP applications. It validates structured data without requiring HTTP, runtime, database, or UI dependencies.

The package is intended to remain small, reusable, and independent so it can be used by actions, forms, config, security, APIs, or standalone PHP code.

Requirements

  • PHP ^8.5

Installation

Once this package is available through your Composer repositories, install it with:

composer require comphp/validation

Usage

<?php

// TODO: Write usage

Package Notes

This package should stay standalone and usable outside the full CommonPHP runtime. It should provide validation rules, validation results, and reusable input/object validation behavior.

Error Handling

Validation failures should normally return validation result objects. Invalid rule definitions or internal validation errors should throw CommonPHP validation exceptions.

Documentation

License

MIT. See LICENSE.md.