A minimal service provider to set up and use the Kraken API PHP library in Laravel 5
acrossoffwest/laravel-kraken is a Laravel package for a minimal service provider to set up and use the kraken api php library in laravel 5.
It currently has 0 GitHub stars and 31 downloads on Packagist (latest version v1.0.3).
Install it with composer require acrossoffwest/laravel-kraken.
Discover more Laravel packages by acrossoffwest
or browse all Laravel packages to compare alternatives.
Last updated
A composer package for the Kraken PHP API which supports the Laravel 5 framework. Original package by https://github.com/danvuquoc/laravel-kraken, but wasn't updated in months for Laravel 5.4 and 5.5. Credits go completely to him!
A composer package for the Kraken PHP API which supports the Laravel 5 framework.
The best way to install laravel-kraken is with Composer.
To install the most recent version, run the following command.
$ php composer.phar require acrossoffwest/laravel-kraken
Alternatively, you may edit your composer.son directly by adding the following to the require section.
"require": {
"acrossoffwest/laravel-kraken": "1.*",
}
Register the service provider in config/app.php by inserting it into the
providers array:
'providers' => [
...
Danvuquoc\Kraken\KrakenServiceProvider::class,
...
]
Running the following command will publish config/kraken.php to your config
folder. In this file you will need to insert your api key and api secret.
$ php artisan vendor:publish —provider="Danvuquoc\Kraken\KrakenServiceProvider"
Register the facade in config/app.php by inserting it into the aliases array:
'aliases' => [
...
'KrakenIO' => Danvuquoc\Kraken\KrakenFacade::class,
...
]
Be sure to use KrakenIO; in your code
Then you can simply:
$response = KrakenIO::url([
'url' => 'http://url-to-image.com/file.jpg',
'wait' => true,
]);
Full documentation on the Kraken PHP Api is available on their Kraken PHP API Github Repo.