boshurik / ru-constraints
Symfony constraints for Russian specific IDs
Installs: 1 649
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.2|^8.0
- ext-bcmath: *
- symfony/validator: ^5.4|^6.0|^7.0
Requires (Dev)
- symfony/phpunit-bridge: ^5.4.34|^6.4.2|^7.4.0
README
Port of php-data-validation
- Bik
- Inn
- Kpp
- Ogrn
- Ogrnip
- Snils
- Ks
- Rs
Symfony integration
services: _defaults: autowire: true autoconfigure: true BoShurik\Constraints\Ru\BikValidator: ~ BoShurik\Constraints\Ru\InnValidator: ~ BoShurik\Constraints\Ru\KppValidator: ~ BoShurik\Constraints\Ru\KsValidator: ~ BoShurik\Constraints\Ru\OgrnipValidator: ~ BoShurik\Constraints\Ru\OgrnValidator: ~ BoShurik\Constraints\Ru\RsValidator: ~ BoShurik\Constraints\Ru\SnilsValidator: ~
without autoconfigure
:
services: BoShurik\Constraints\Ru\BikValidator: tags: ['validator.constraint_validator'] BoShurik\Constraints\Ru\InnValidator: tags: ['validator.constraint_validator'] BoShurik\Constraints\Ru\KppValidator: tags: ['validator.constraint_validator'] BoShurik\Constraints\Ru\KsValidator: tags: ['validator.constraint_validator'] BoShurik\Constraints\Ru\OgrnipValidator: tags: ['validator.constraint_validator'] BoShurik\Constraints\Ru\OgrnValidator: tags: ['validator.constraint_validator'] BoShurik\Constraints\Ru\RsValidator: tags: ['validator.constraint_validator'] BoShurik\Constraints\Ru\SnilsValidator: tags: ['validator.constraint_validator']