Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-kickbox maintained by juanparati

Description
A Kickbox library for Laravel
Author
Last update
2023/06/08 10:17 (dev-master)
License
Links
Downloads
3 528

Comments
comments powered by Disqus

Laravel Kickbox

A Laravel interface for the Kickbox service.

Installation

composer require juanparati/laravel-kickbox

Facade registration (optional):

'aliases' => [
    ...
    'Kickbox' => \Juanparati\LaravelKickbox\Facades\KickboxFacade::class,
    ...
]

Configuration

Publish configuration file:

artisan vendor:publish --provider="Juanparati\LaravelKickbox\Providers\KickboxServiceProvider"

Add the Kickbox api key into your configuration file.

Usage

Verify an e-mail:

$result = Kickbox::service('email')->verify('example@example.org');

Get last balance:

$result = Kickbox::getLastBalance();

Count the number of verifications in the last minute:

Kickbox::getVerificationsInLastMinute();

Verify a list of e-mails using the batch verification:

$list = ['example@example.org', 'example@example.com'];
$job = Kickbox::service('batch')->upload($list, 'https://mycallbackurl.com/foo/bar');

Verify job status

$status = Kickbox::service('batch')->verifyJob($job['id']);

Cache usage

It's possible to define a default cache for the email verification service. This will avoid to perform duplicate verifications of the same e-mail.

See the configuration file for more details.