<?php
require __DIR__ . '/vendor/autoload.php';
use ValidatorPizza\Validator\Validator;
$validator = new Validator();
var_dump($validator->domain("google.com")); // true|false
$validator = new Validator();
var_dump($validator->email("ridwan.pamungks@gmail.com")); // true|false
Domain & Email validate with http://validator.pizza/