├── .editorconfig ├── .env.testing ├── .env.testing.slic ├── .github └── workflows │ ├── phpstan.yml │ └── tests-php.yml ├── .gitignore ├── CLAUDE.md ├── LICENSE ├── README.md ├── bin └── set-domain ├── codeception.dist.yml ├── codeception.slic.yml ├── composer.json ├── composer.lock ├── phpstan.neon ├── src ├── Commands │ ├── ExcludeValue.php │ └── SkipValidationRules.php ├── Concerns │ └── HasValidationRules.php ├── Config.php ├── Contracts │ ├── Sanitizer.php │ ├── ValidatesOnFrontEnd.php │ └── ValidationRule.php ├── Exceptions │ ├── Contracts │ │ └── ValidationExceptionInterface.php │ └── ValidationException.php ├── Rules │ ├── Abstracts │ │ └── ConditionalRule.php │ ├── Boolean.php │ ├── Currency.php │ ├── DateTime.php │ ├── Email.php │ ├── Exclude.php │ ├── ExcludeIf.php │ ├── ExcludeUnless.php │ ├── In.php │ ├── InStrict.php │ ├── Integer.php │ ├── Max.php │ ├── Min.php │ ├── Nullable.php │ ├── NullableIf.php │ ├── NullableUnless.php │ ├── Numeric.php │ ├── Optional.php │ ├── OptionalIf.php │ ├── OptionalUnless.php │ ├── Required.php │ └── Size.php ├── ServiceProvider.php ├── ValidationRuleSet.php ├── ValidationRulesRegistrar.php └── Validator.php └── tests ├── _bootstrap.php ├── _data └── .gitkeep ├── _output └── .gitignore ├── _support ├── Helper │ └── TestCase.php ├── UnitTester.php └── _generated │ └── .gitignore ├── config.php ├── unit.suite.yml └── unit ├── Rules ├── Abstracts │ └── ConditionalRuleTest.php ├── BooleanTest.php ├── CurrencyTest.php ├── DateTimeTest.php ├── EmailTest.php ├── ExcludeIfTest.php ├── ExcludeTest.php ├── ExcludeUnlessTest.php ├── InStrictTest.php ├── InTest.php ├── IntegerTest.php ├── MaxTest.php ├── MinTest.php ├── NullableIfTest.php ├── NullableTest.php ├── NullableUnlessTest.php ├── NumericTest.php ├── OptionalIfTest.php ├── OptionalTest.php ├── OptionalUnlessTest.php ├── RequiredTest.php └── SizeTest.php ├── ValidationRuleSetTest.php ├── ValidatorTest.php └── _bootstrap.php /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.testing: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/.env.testing -------------------------------------------------------------------------------- /.env.testing.slic: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/.env.testing.slic -------------------------------------------------------------------------------- /.github/workflows/phpstan.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/.github/workflows/phpstan.yml -------------------------------------------------------------------------------- /.github/workflows/tests-php.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/.github/workflows/tests-php.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea 3 | vendor 4 | .phpunit.result.cache 5 | -------------------------------------------------------------------------------- /CLAUDE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/CLAUDE.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/README.md -------------------------------------------------------------------------------- /bin/set-domain: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/bin/set-domain -------------------------------------------------------------------------------- /codeception.dist.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/codeception.dist.yml -------------------------------------------------------------------------------- /codeception.slic.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/codeception.slic.yml -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/composer.lock -------------------------------------------------------------------------------- /phpstan.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/phpstan.neon -------------------------------------------------------------------------------- /src/Commands/ExcludeValue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Commands/ExcludeValue.php -------------------------------------------------------------------------------- /src/Commands/SkipValidationRules.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Commands/SkipValidationRules.php -------------------------------------------------------------------------------- /src/Concerns/HasValidationRules.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Concerns/HasValidationRules.php -------------------------------------------------------------------------------- /src/Config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Config.php -------------------------------------------------------------------------------- /src/Contracts/Sanitizer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Contracts/Sanitizer.php -------------------------------------------------------------------------------- /src/Contracts/ValidatesOnFrontEnd.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Contracts/ValidatesOnFrontEnd.php -------------------------------------------------------------------------------- /src/Contracts/ValidationRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Contracts/ValidationRule.php -------------------------------------------------------------------------------- /src/Exceptions/Contracts/ValidationExceptionInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Exceptions/Contracts/ValidationExceptionInterface.php -------------------------------------------------------------------------------- /src/Exceptions/ValidationException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Exceptions/ValidationException.php -------------------------------------------------------------------------------- /src/Rules/Abstracts/ConditionalRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/Abstracts/ConditionalRule.php -------------------------------------------------------------------------------- /src/Rules/Boolean.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/Boolean.php -------------------------------------------------------------------------------- /src/Rules/Currency.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/Currency.php -------------------------------------------------------------------------------- /src/Rules/DateTime.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/DateTime.php -------------------------------------------------------------------------------- /src/Rules/Email.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/Email.php -------------------------------------------------------------------------------- /src/Rules/Exclude.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/Exclude.php -------------------------------------------------------------------------------- /src/Rules/ExcludeIf.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/ExcludeIf.php -------------------------------------------------------------------------------- /src/Rules/ExcludeUnless.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/ExcludeUnless.php -------------------------------------------------------------------------------- /src/Rules/In.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/In.php -------------------------------------------------------------------------------- /src/Rules/InStrict.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/InStrict.php -------------------------------------------------------------------------------- /src/Rules/Integer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/Integer.php -------------------------------------------------------------------------------- /src/Rules/Max.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/Max.php -------------------------------------------------------------------------------- /src/Rules/Min.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/Min.php -------------------------------------------------------------------------------- /src/Rules/Nullable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/Nullable.php -------------------------------------------------------------------------------- /src/Rules/NullableIf.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/NullableIf.php -------------------------------------------------------------------------------- /src/Rules/NullableUnless.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/NullableUnless.php -------------------------------------------------------------------------------- /src/Rules/Numeric.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/Numeric.php -------------------------------------------------------------------------------- /src/Rules/Optional.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/Optional.php -------------------------------------------------------------------------------- /src/Rules/OptionalIf.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/OptionalIf.php -------------------------------------------------------------------------------- /src/Rules/OptionalUnless.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/OptionalUnless.php -------------------------------------------------------------------------------- /src/Rules/Required.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/Required.php -------------------------------------------------------------------------------- /src/Rules/Size.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Rules/Size.php -------------------------------------------------------------------------------- /src/ServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/ServiceProvider.php -------------------------------------------------------------------------------- /src/ValidationRuleSet.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/ValidationRuleSet.php -------------------------------------------------------------------------------- /src/ValidationRulesRegistrar.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/ValidationRulesRegistrar.php -------------------------------------------------------------------------------- /src/Validator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/src/Validator.php -------------------------------------------------------------------------------- /tests/_bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/_bootstrap.php -------------------------------------------------------------------------------- /tests/_data/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/_output/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /tests/_support/Helper/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/_support/Helper/TestCase.php -------------------------------------------------------------------------------- /tests/_support/UnitTester.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/_support/UnitTester.php -------------------------------------------------------------------------------- /tests/_support/_generated/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /tests/config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/config.php -------------------------------------------------------------------------------- /tests/unit.suite.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit.suite.yml -------------------------------------------------------------------------------- /tests/unit/Rules/Abstracts/ConditionalRuleTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/Abstracts/ConditionalRuleTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/BooleanTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/BooleanTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/CurrencyTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/CurrencyTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/DateTimeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/DateTimeTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/EmailTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/EmailTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/ExcludeIfTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/ExcludeIfTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/ExcludeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/ExcludeTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/ExcludeUnlessTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/ExcludeUnlessTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/InStrictTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/InStrictTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/InTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/InTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/IntegerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/IntegerTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/MaxTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/MaxTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/MinTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/MinTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/NullableIfTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/NullableIfTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/NullableTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/NullableTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/NullableUnlessTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/NullableUnlessTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/NumericTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/NumericTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/OptionalIfTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/OptionalIfTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/OptionalTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/OptionalTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/OptionalUnlessTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/OptionalUnlessTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/RequiredTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/RequiredTest.php -------------------------------------------------------------------------------- /tests/unit/Rules/SizeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/Rules/SizeTest.php -------------------------------------------------------------------------------- /tests/unit/ValidationRuleSetTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/ValidationRuleSetTest.php -------------------------------------------------------------------------------- /tests/unit/ValidatorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/ValidatorTest.php -------------------------------------------------------------------------------- /tests/unit/_bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stellarwp/validation/HEAD/tests/unit/_bootstrap.php --------------------------------------------------------------------------------