https://github.com/laxcorp/fqdnvalidatorbundle
For Symfony's validator Fully Qualified Domain Name.
https://github.com/laxcorp/fqdnvalidatorbundle
php symfony-bundle symfony-validator
Last synced: 3 months ago
JSON representation
For Symfony's validator Fully Qualified Domain Name.
- Host: GitHub
- URL: https://github.com/laxcorp/fqdnvalidatorbundle
- Owner: LaxCorp
- License: mit
- Created: 2018-02-27T03:36:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-01T03:16:01.000Z (over 5 years ago)
- Last Synced: 2025-04-08T05:47:52.838Z (3 months ago)
- Topics: php, symfony-bundle, symfony-validator
- Language: PHP
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fully Qualified Domain Name validator
For Symfony's Validator component to test if a value is a valid Fully Qualified Domain Name.Install
-------
composer require laxcorp/fqdn-validator-bundleAdd in app/AppKernel.php
------------------------
```php
$bundles = [
new LaxCorp\FqdnValidatorBundle\FqdnValidatorBundle()
]
`````` require parameters
catalog_cname: 'catalog.domain.ru'
catalog_domain_suffix: '.catalog.domain.ru'
```Use in Entity
-------------
```
use LaxCorp\FqdnValidatorBundle\Validator\Constraints\FqdnEntity;
``````php
/**
*
* @ORM\Entity
*
* @FqdnEntity(
* fieldFqdn="domain",
* ignoreNull=true
* )
*/
class ...