PHPackages                             antwerpfactory/laravel-lightspeed-restaurant - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. antwerpfactory/laravel-lightspeed-restaurant

AbandonedArchivedLibrary[API Development](/categories/api)

antwerpfactory/laravel-lightspeed-restaurant
============================================

A Laravel 5 package for the Lightspeed restaurant API

v1.0.0(8y ago)58625MITPHPPHP &gt;=5.6.4

Since Dec 1Pushed 8y ago3 watchersCompare

[ Source](https://github.com/AntwerpFactory/laravel-lightspeed-restaurant)[ Packagist](https://packagist.org/packages/antwerpfactory/laravel-lightspeed-restaurant)[ RSS](/packages/antwerpfactory-laravel-lightspeed-restaurant/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/91673c220cdf5389e0dd1841b8981b595520d1b6485cb7ceb7abab15d48b46b4/68747470733a2f2f7472617669732d63692e6f72672f416e7477657270466163746f72792f6c61726176656c2d6c6967687473706565642d72657374617572616e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AntwerpFactory/laravel-lightspeed-restaurant)

Laravel Lightspeed Restaurant
=============================

[](#laravel-lightspeed-restaurant)

This package makes working with the Lightspeed Restaurant API a breeze. Once installed you can perform all API calls like so:

```
use Lightspeedresto;

app()->lightspeedresto->core()->getCompanies(); // container

Lightspeedresto::core()->getCompanies(); // or use the facade

Lightspeedresto::core()->getCompany($companyId);

Lightspeedresto::onlineOrdering()->getCustomers();

Lightspeedresto::onlineOrdering()->updateOrderPartial($companyId, $orderId, $data);

Lightspeedresto::inventory()->addProduct($productGroupId, $data);
```

We recommend using [fractals](https://github.com/thephpleague/fractal) to transform the data that gets passed through to the API.

Installation
------------

[](#installation)

Install the package via composer:

```
composer require antwerpfactory/laravel-lightspeed-restaurant
```

Unless you're using Laravel 5.5 you need to register the ServiceProvider and Facade:

```
'providers' => [
    ...
    AntwerpFactory\LightspeedRestaurant\ServiceProvider::class,
];
```

```
'aliases' => [
	...
    'Lightspeedresto' => AntwerpFactory\LightspeedRestaurant\Facade::class,
    ...
]
```

### Configuration

[](#configuration)

Publish the configuration with this command:

```
php artisan vendor:publish --provider="AntwerpFactory\LightspeedRestaurant\ServiceProvider"
```

This will publish file called `lightspeedrestaurant.php` in your config-directory with this content:

```
