Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

EVA - Email Validator Laravel Plugin!

License

NotificationsYou must be signed in to change notification settings

square-bit/eva-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable VersionLicenseTotal Downloads

Laravel package for integration with e-va.io service.Provides a Rule to automatically validate form emails.

Install

composer require square-bit/laravel-eva

The package will automatically register its service provider.

To publish the default config atconfig/eva.php:

php artisan vendor:publish --provider="Squarebit\EVA\EVAServiceProvider" --tag="config"

Make sure you update the.env file with a valid API Key (generate one at e-va.io)

VariablesDefault value
EVA_APIKEYnull
EVA_SERVICE_UNAVAILABLEtrue
EVA_UNKOWNfalse
EVA_INVALIDfalse
EVA_RISKYfalse
EVA_SAFEtrue

Usage

You can now use EVA to validate any email provided by your users directly with the Laravel Validator.

Let's say you're already validating an email on its basic properties

return Validator::make($data, [        [...]'email' => ['required','string','email','max:255'],        [...]    ]);

To get the email validated simply add the EVAValidated class to the list of rules:

useSquarebit\EVA\Rules\EVAValidated[...]return Validator::make($data, [        [...]'email' => [newEVAValidated,'required','string','email','max:255','unique:users'],        [...]    ]);

That's it !

Security

If you discover any security related issues, please emailinfo@square-bit.com instead of using the issue tracker.

Credits

License

MIT. Please see thelicense file for more information.


[8]ページ先頭

©2009-2025 Movatter.jp