danvuquoc/laravel-kraken
laravel-kraken
A composer package for the Kraken PHP API which supports the Laravel 5 framework.
Composer Installation
The best way to install laravel-kraken is with Composer.
To install the most recent version, run the following command.
$ php composer.phar require danvuquoc/laravel-kraken
Alternatively, you may edit your composer.son directly by adding the following to the require section.
"require": {
"danvuquoc/laravel-kraken": "1.*",
}
Integration in Laravel
Publish Configuration File
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"
Providers
This is only applicable to versions prior to Laravel 5.5, Automatic Package Discovery is enabled for Laravel 5.5 and above.
Register the service provider in config/app.php by inserting it into the
providers array:
'providers' => [
...
Danvuquoc\Kraken\KrakenServiceProvider::class,
...
]
Facade
This is only applicable to versions prior to Laravel 5.5, Automatic Package Discovery is enabled for Laravel 5.5 and above.
Register the facade in config/app.php by inserting it into the aliases array:
'aliases' => [
...
'KrakenIO' => Danvuquoc\Kraken\KrakenFacade::class,
...
]
Usage
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.
Related Packages
The most powerful and extendable REST API / Websocket client for Kraken.com. Bui...
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| v1.2.2 | 5.0 - 5.8 | MIT | |
| v1.2.1 | 5.0 - 5.7 | MIT | |
| v1.2.0 | 5.0 - 5.6 | MIT | |
| v1.1.1 | 5.0 - 5.6 | MIT | |
| v1.1.0 | 5.0 - 5.6 | MIT | |
| v1.0.2 | 5.0 - 5.4 | MIT | |
| v1.0.1 | 5.0 - 5.2 | MIT | |
| v1.0 | 5.0 - 5.1 | MIT |