PHPackages                             ajd/ajd-validation-respect-adapter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. ajd/ajd-validation-respect-adapter

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

ajd/ajd-validation-respect-adapter
==================================

AJD validation respect validation rules adpater

04PHP

Since Sep 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ajdoc/ajd-validation-respect-adapter)[ Packagist](https://packagist.org/packages/ajd/ajd-validation-respect-adapter)[ RSS](/packages/ajd-ajd-validation-respect-adapter/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

AJD Validation respect adapter
==============================

[](#ajd-validation-respect-adapter)

Respect Validation adapter for AJD validation

Description
-----------

[](#description)

Respect Validation adapter for AJD validation so that you could use repect validation's rules with the unique features that ajd validation provides.

Getting Started
---------------

[](#getting-started)

### Installing

[](#installing)

- `composer require ajd/ajd-validation-respect-adapter`
- after installing add the package to AJD validation as shown by the example below

```
use AJD_validation\AJD_validation;

$v->addPackages([
	AjdRespect\AjdRespectServiceProvider::class
]);
```

- adding package is usally done in the bootsraping of your application

Documentation
-------------

[](#documentation)

### API

[](#api)

- After installing and adding the package you now have access to respect validation rules
- To access respect validation rules prefix the respect validation rule with `respect[respect_rule_name]`

```
use AJD_validation\AJD_validation;

$v = new AJD_validation;

$v
	->respectnotempty()
	->respectalnum('*')
	->check('respectrules', '');
// outputs error
	/*
		All of the required rules must pass for "Respectrules".
		  - Respectrules must not be empty
		  - Respectrules must contain only letters (a-z), digits (0-9) and "*"
	*/

$v
	->getValidator()
	->respectnotempty()
	->respectalnum('*')
	->validate(''); // returns false

$v
	->respectnotempty()
	->respectalnum('*')
	->check('respectrules', 'a'); // validation passes

$v
	->getValidator()
	->respectnotempty()
	->respectalnum('*')
	->validate('a'); // returns true
```

- if you are going to use special rules of respect validation which requries Respect's \\Respect\\Validation\\Validatable as a satisfier/argument
    1. Use `$v->getRespectValidator()` (this method comes with the package) method which returns \\Respect\\Validation\\Validator instance.
    2. Then enclosed all the \\Respect\\Validation\\Validatable in an array.
    3. When using `$v->getRespectValidator()` you must call respect validation rules like as discussed here:
        [Respect validation documentation](https://respect-validation.readthedocs.io/en/latest/)

```
use AJD_validation\AJD_validation;

$v = new AJD_validation;

$v
	->respectnoneof(
		[
			$v->getRespectValidator()
				->NotEmpty()
				->alnum('*')
		]
	)
	->check('respectrules', 'a');
// outputs error
	/*
		All of the required rules must pass for "Respectrules".
  			- None of these rules must pass for Respectrules
	*/

$v
	->getValidator()
	->respectnoneof(
		[
			$v->getRespectValidator()
				->NotEmpty()
				->alnum('*')
		]
	)
	->validate('a'); // returns false

$v
	->respectnoneof(
		[
			$v->getRespectValidator()
				->NotEmpty()
				->alnum('*')
		]
	)
	->check('respectrules', ''); // validation passes

$v
	->getValidator()
	->respectnoneof(
		[
			$v->getRespectValidator()
				->NotEmpty()
				->alnum('*')
		]
	)
	->validate(''); // returns true
```

See respect validation documentation here - [Respect validation documentation](https://respect-validation.readthedocs.io/en/latest/)

Authors
-------

[](#authors)

Contributors names and contact info Aj Doc ()

Version History
---------------

[](#version-history)

- 0.1 (master)
    - Initial Release

Links
-----

[](#links)

- See also:
    - [AJD validation](https://github.com/ajdoc/ajd-validation)

Acknowledgments
---------------

[](#acknowledgments)

Inspiration, code snippets, etc.

- [respect/validation](https://github.com/Respect/Validation)

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a5ae412dee6651cf5016e4dd8e109d4ade694a717ed1d1b32f65715111f52150?d=identicon)[ajdoc](/maintainers/ajdoc)

---

Top Contributors

[![ajdoc](https://avatars.githubusercontent.com/u/108965281?v=4)](https://github.com/ajdoc "ajdoc (6 commits)")

### Embed Badge

![Health badge](/badges/ajd-ajd-validation-respect-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/ajd-ajd-validation-respect-adapter/health.svg)](https://phpackages.com/packages/ajd-ajd-validation-respect-adapter)
```

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
