juanparati/laravel-kickbox
A Kickbox library for Laravel
3,566
| 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
erirk/paypalpayment
laravel-paypalpayment is simple package help you process direct credit card paym...
0
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
628,058,007
9,707