juanparati/laravel-kickbox

A Kickbox library for Laravel
3,613
Install
composer require juanparati/laravel-kickbox
Latest Version:1.1
PHP:>=7.3
License:MIT
Last Updated:Jun 8, 2023
Links: GitHub  ·  Packagist
Maintainer: juanparati

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.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP Laravel License
1.1 >=7.3 >=7 MIT
1.0 >=7.3 ^7 || ^8 || ^9 MIT
0.8 >=7.3 ^7 || ^8 MIT