2017 © Pedro Peláez
 

library laravel-lightspeed-api

A Laravel wrapper for the Lightspeed Seoshop API

image

gunharth/laravel-lightspeed-api

A Laravel wrapper for the Lightspeed Seoshop API

  • Thursday, May 11, 2017
  • by gunharth
  • Repository
  • 2 Watchers
  • 2 Stars
  • 452 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 188 % Grown

The README.md

Laravel 5 Lightspeed Seoshop API Wrapper

Latest Version on Packagist Software License StyleCI, (*1)

This package makes working with the Lightspeed eCom API a breeze. Once installed you can perform all API calls like so:, (*2)

use ShopApi;

// shop info
$shopInfo = ShopApi::shop()->get();

// retrieve all products
$products = ShopApi::products()->get(); // Note: by default the API spits out 50 items with a max of 250

// with params
$products = ShopApi::products()->get(null, array('page' => 1, 'limit' => 100));

// product info with id
$productInfo = ShopApi::products()->get(1);

// to change the API language
ShopApi::setApiLanguage('de');

Consult the Lightspeed eCom API docs for all of the API options., (*3)

Installation

Install the package via composer:, (*4)

composer require gunharth/laravel-lightspeed-api

Next up the service provider must be registered:, (*5)

'providers' => [
    ...
    Gunharth\Lightspeed\LightspeedServiceProvider::class,
];

Register the Gunharth\Lightspeed\LightspeedFacade Facade:, (*6)

'aliases' => [
    ...
    'ShopApi' => Gunharth\Lightspeed\LightspeedFacade::class,
    ...
]

Publish the configuration with this command:, (*7)

php artisan vendor:publish --provider="Gunharth\Lightspeed\LightspeedServiceProvider"

This will publish file called lightspeed-api.php in your config-directory with this contents:, (*8)

<?php

return [

    /*
     * Lightspeed cluser_id
     */
    'cluster_id' => '',

     /*
     * Lightspeed API key
     */
    'api_key' => '',

    /*
     * Lightspeed API secret
     */
    'api_secret' => '',

    /*
     * Lightspeed Default API Language
     */
    'locale' => '',

];

Read the Lightspeed eCom API docs to learn on how to set the correct values and api keys., (*9)

Contributing

Please see CONTRIBUTING for details., (*10)

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

11/05 2017

dev-master

9999999-dev https://github.com/gunharth/laravel-lightspeed-api

A Laravel wrapper for the Lightspeed Seoshop API

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api lightspeed seoshop laravel-lightspeed-api

11/05 2017

1.0.4

1.0.4.0 https://github.com/gunharth/laravel-lightspeed-api

A Laravel wrapper for the Lightspeed Seoshop API

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api lightspeed seoshop laravel-lightspeed-api

06/12 2016

1.0.3

1.0.3.0 https://github.com/gunharth/laravel-lightspeed-api

A Laravel wrapper for the Lightspeed Seoshop API

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api lightspeed seoshop laravel-lightspeed-api

29/11 2016

1.0.2

1.0.2.0 https://github.com/gunharth/laravel-lightspeed-api

A Laravel wrapper for the Lightspeed Seoshop API

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api lightspeed seoshop laravel-lightspeed-api

29/11 2016

1.0.1

1.0.1.0 https://github.com/gunharth/laravel-lightspeed-api

A Laravel wrapper for the Lightspeed Seoshop API

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api lightspeed seoshop laravel-lightspeed-api

29/11 2016

1.0.0

1.0.0.0 https://github.com/gunharth/laravel-lightspeed-api

A Laravel wrapper for the Lightspeed Seoshop API

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api lightspeed seoshop laravel-lightspeed-api