Download the PHP package insign/dumb-emails-validator without Composer
On this page you can find all versions of the php package insign/dumb-emails-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download insign/dumb-emails-validator
More information about insign/dumb-emails-validator
Files in insign/dumb-emails-validator
Package dumb-emails-validator
Short Description Laravel validator for common email domain typos
License MIT
Informations about the package dumb-emails-validator
Laravel Dumb Emails Validator
This package provides a custom validator for Laravel that checks for common typos in email domains.
Installation
-
Install the package via Composer:
- Publish the config file (optional):
Usage
Use the dumb_email
rule in your validation rules:
Customization
You can customize the list of domain corrections, and the error message in the config/dumb-emails.php
file.
The :attribute
placeholder will be replaced with the field name (e.g., "email"), and :correct_domain
will be replaced with the suggested correct domain.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar [email protected]
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
You just DO WHAT THE FUCK YOU WANT TO. json "autoload": { "psr-4": { "App\": "app/", // ... other autoload entries "insign\DumbEmailsValidator\": "packages/your-vendor/laravel-dumb-emails-validator/src" } }, json "repositories": [ { "type": "path", "url": "packages/your-vendor/laravel-dumb-emails-validator" } ]
- Install: Run
composer require your-vendor/laravel-dumb-emails-validator
- Publish Config: Run
php artisan vendor:publish --provider="insign\DumbEmailsValidator\DumbEmailsValidatorServiceProvider" --tag="config"
- Register Service Provider: Add the provider to your
config/app.php
:
Now you can use the dumb_email
validation rule as shown in the README.md
. Remember to adjust the vendor name and namespaces as needed if you change them.
All versions of dumb-emails-validator with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
illuminate/validation Version ^8.0|^9.0|^10.0|^11.0