laralocker

Laravel + Learning Locker || A Laravel Package for Learning Locker.

View the Project on GitHub ijeffro/laralocker

<img align="center" width="50px" height="56px"src="https://laravel.com/img/logomark.min.svg" alt="Laravel">     plus     Learning Locker </p>

LaraLocker

Build Status Quality Score Total Downloads Software License</img>Latest Version on Packagist Latest Version</img>

A Laravel package for Learning Locker® the most installed Learning Record Store in the world. LaraLocker is a PHP Client for the Learning Locker® API with support for Laravel.

## Installation You can install the package via composer: ```bash composer require ijeffro/laralocker ``` Add the envirnoment variables to laravel's .env ```env LEARNING_LOCKER_URL=https://saas.learninglocker.net LEARNING_LOCKER_KEY=91e2ed0716a19728dc5deff542b7987f59802f56 LEARNING_LOCKER_SECRET=fa2d7e9850f401d6ae98e2805ccb404c6aaa8c45 ``` Run the install command to add the api routes... ```bash php artisan laralocker:install ``` ## Usage You can call Learning Locker® in various different ways Trying using the Learning Locker Facade to access the stores (LRS). ``` php use LearningLocker; ``` Now try Interacting with the Learning locker API. ``` php LearningLocker::stores()->get(); ``` Get Learning Locker stores by store id (_id). ``` php LearningLocker::store($id)->get(); ``` Create a new store in Learning Locker. ``` php LearningLocker::store()->create($data); ``` Update a Learning Locker store by id (_id) ``` php LearningLocker::store($id)->update($data); ``` Delete a Learning Locker store ``` php LearningLocker::store($id)->delete(); ``` ### Wiki Please see [Wiki](https://github.com/ijeffro/laralocker/wiki) for more information what has changed recently. ### Changelog Please see [CHANGELOG](/laralocker/CHANGELOG.html) for more information what has changed recently. ## Contributing Please see [CONTRIBUTING](/laralocker/CONTRIBUTING.md) for details. ### Security If you discover any security related issues, please email phil.graham@ht2labs.com instead of using the issue tracker. ## Credits - [Phil Graham](https://github.com/ijeffro) - [All Contributors](../../contributors) ## License The MIT License (MIT). Please see [License File](/laralocker/LICENSE.md) for more information. [![Latest Version on Packagist](https://img.shields.io/packagist/v/ijeffro/laralocker.svg?style=flat-square)](https://packagist.org/packages/ijeffro/laralocker) [![Build Status](https://img.shields.io/travis/ijeffro/laralocker/master.svg?style=flat-square)](https://travis-ci.org/ijeffro/laralocker) [![Quality Score](https://img.shields.io/scrutinizer/g/ijeffro/laralocker.svg?style=flat-square)](https://scrutinizer-ci.com/g/ijeffro/laralocker) [![Total Downloads](https://img.shields.io/packagist/dt/ijeffro/laralocker.svg?style=flat-square)](https://packagist.org/packages/ijeffro/laralocker)