imjonos/laravel-mailboxlayer

Laravel Email validators based on apilayer

dev-master 2022-10-13 09:13 UTC

This package is auto-updated.

Last update: 2024-04-13 12:32:59 UTC


README

Validator based on api https://apilayer.com/marketplace/email_verification-api

Installation

Via Composer

$ composer require imjonos/laravel-mailboxlayer
$ php artisan vendor:publish --provider="Nos\Mailboxlayer\MailboxlayerServiceProvider"
$ php artisan migrate

Usage

use Nos\Mailboxlayer\Rules\IsMxRecord;

public function rules(): array
{
    return [
        'email' => ['required', new IsMxRecord()],
    ];
}

Contributing

Please see contributing.md for details and a todolist.

License

license. Please see the license file for more information.