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

danvuquoc/laravel-kraken

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

  • Monday, March 12, 2018
  • by danvuquoc
  • Repository
  • 3 Watchers
  • 7 Stars
  • 19,042 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 8 Versions
  • 32 % Grown

The README.md

laravel-kraken

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

Composer Installation

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

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

$ php composer.phar require danvuquoc/laravel-kraken, (*4)

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

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

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

Providers

This is only applicable to versions prior to Laravel 5.5, Automatic Package Discovery is enabled for Laravel 5.5 and above., (*8)

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

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

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

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

Usage

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

Then you can simply:, (*13)

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

The Versions

12/03 2018

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

 

The Development Requires

laravel kraken

12/03 2018

v1.1.1

1.1.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel kraken

12/03 2018

v1.2.0

1.2.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel kraken

08/03 2018

v1.1.0

1.1.0.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

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