2017 © Pedro Peláez
 

library laravel-kraken

A minimal service provider to set up and use the Kraken API PHP library in Laravel 5

image

acrossoffwest/laravel-kraken

A minimal service provider to set up and use the Kraken API PHP library in Laravel 5

  • Thursday, September 14, 2017
  • by acrossoffwest
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

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!, (*1)

laravel-kraken

A composer package for the Kraken PHP API which supports the Laravel 5 framework., (*2)

Composer Installation

The best way to install laravel-kraken is with Composer., (*3)

To install the most recent version, run the following command., (*4)

$ php composer.phar require acrossoffwest/laravel-kraken, (*5)

Alternatively, you may edit your composer.son directly by adding the following to the require section., (*6)

"require": {
    "acrossoffwest/laravel-kraken": "1.*",
}

Integration in Laravel

Providers

Register the service provider in config/app.php by inserting it into the providers array:, (*7)

'providers' => [
    ...
    Danvuquoc\Kraken\KrakenServiceProvider::class,
    ...
]

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., (*8)

$ php artisan vendor:publish —provider="Danvuquoc\Kraken\KrakenServiceProvider", (*9)

Facade

Register the facade in config/app.php by inserting it into the aliases array:, (*10)

'aliases' => [
    ...
    'KrakenIO' => Danvuquoc\Kraken\KrakenFacade::class,
    ...
]

Usage

Be sure to use KrakenIO; in your code, (*11)

Then you can simply:, (*12)

$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., (*13)

The Versions

14/09 2017

dev-master

9999999-dev

A minimal service provider to set up and use the Kraken API PHP library in Laravel 5

  Sources   Download

MIT

The Requires

 

laravel kraken

18/03 2017

v1.0.2

1.0.2.0

A minimal service provider to set up and use the Kraken API PHP library in Laravel 5

  Sources   Download

MIT

The Requires

 

laravel kraken

22/12 2015

v1.0.1

1.0.1.0

A minimal service provider to set up and use the Kraken API PHP library in Laravel 5

  Sources   Download

MIT

The Requires

 

laravel kraken

22/12 2015

dev-dev

dev-dev

A minimal service provider to set up and use the Kraken API PHP library in Laravel 5

  Sources   Download

MIT

The Requires

 

laravel kraken

06/11 2015

v1.0

1.0.0.0

A minimal service provider to set up and use the Kraken API PHP library in Laravel 5

  Sources   Download

MIT

The Requires