Download the PHP package simplesquid/laravel-vend-sdk without Composer
On this page you can find all versions of the php package simplesquid/laravel-vend-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download simplesquid/laravel-vend-sdk
More information about simplesquid/laravel-vend-sdk
Files in simplesquid/laravel-vend-sdk
Package laravel-vend-sdk
Short Description A Laravel package for our PHP SDK for Vend POS.
License MIT
Homepage https://github.com/simplesquid/laravel-vend-sdk
Informations about the package laravel-vend-sdk
Vend SDK (a Laravel Package)
A Laravel package for our PHP SDK for Vend POS.
Installation
You can install this package via composer:
The package will automatically register itself with the Laravel service container.
To publish the config file to config/vend.php
run:
OAuth Setup
Should you wish to make use of the OAuth authorisation method, you will need to register your application on the Vend Developer page and set the redirect URI to the named route url, vend.oauth.request
.
Then, copy the client ID and secret to your environment variables. You will also need to create an implementation of \SimpleSquid\LaravelVend\VendTokenManager
to store and retrieve the access token (it is recommended to be saved in your database).
Finally, direct your user to the named route, vend.oauth.request
, in order to request access. The access token will be saved upon the user's successful return to your application, and they will be redirected to the previous page.
Usage
An example use case is shown below. The VendRequestJob
handles both rate limiting and refreshes of the OAuth token.
For more examples, feel free to dive into the code.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Matthew Poulter
- All Contributors
Package skeleton based on spatie/skeleton-php.
About us
SimpleSquid is a small web development and design company based in Cape Town, South Africa.
License
The MIT License (MIT). Please see License File for more information.