thelan / validator-pizza
Integrates validator.pizza with Symfony.
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.0
- psr/log: ~1.0
- symfony/config: ~2.3 || ~3.0
- symfony/dependency-injection: ~2.3 || ~3.0
- symfony/event-dispatcher: ~2.3 || ~3.0
- symfony/framework-bundle: ~2.3 || ~3.0
- symfony/yaml: ~2.3 || ~3.0
This package is auto-updated.
Last update: 2021-03-01 09:51:17 UTC
README
Symfony integration to the disposable email validator
For more info please see: https://www.validator.pizza
Usage
Use this as a simple service:
For instance inside a controller:
// Validate an email address : $email = $this->get('thelan.validator_pizza')->validate('demo@example.com'); // Validate an domain: $domain = $this->get('thelan.validator_pizza')->validate('example.com'); // check if the MX exist: $email->isMx(); // Check if listed as disposable: $email->isDisposable();
Installation
For Symfony >= 2.1.*
Require the bundle in your composer.json file:
{
"require": {
"thelan/validator-pizza": "~1.0",
}
}
Register the bundle:
// app/AppKernel.php public function registerBundles() { $bundles = array( // [...] new thelan\ValidatorPizzaBundle\ValidatorPizzaBundle(), // [...] ); }
Install the bundle:
$ composer update thelan/validator-pizza