ijeffro / laralocker
Laravel + Learning Locker || A Laravel Package for Learning Locker.
Fund package maintenance!
ijeffro
Requires
- php: >=5.6
- ext-json: *
- guzzlehttp/guzzle: ~5.0|~6.3
- illuminate/support: ~4.2.0|~5.0|~5.1.0|~5.2.0|~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0|~6.0|~6.1.0|~6.2.0|~6.3.0|~6.4.0
- lcobucci/jwt: ^3.2
Requires (Dev)
- guzzlehttp/guzzle: ~5.0|~6.3
- laravel/browser-kit-testing: ~2.0.0|~3.0.0|~4.0.0|~5.0.0|~5.1
- laravel/framework: ~4.2.0|~5.0|~5.1.0|~5.2.0|~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0|~6.0|~6.1.0|~6.2.0|~6.3.0|~6.4.0
- orchestra/testbench: ~3.0
- orchestra/testbench-browser-kit: ~3.5|~3.6|~3.7|~3.8|~4.0
- phpunit/phpcov: ~3.7.0|~4.0|~5.0|~6.0
- phpunit/phpunit: ~5.7.14|~6.1|~7.0|~8.0
This package is auto-updated.
Last update: 2024-10-30 01:31:52 UTC
README
LaraLocker
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:
composer require ijeffro/laralocker
Add the envirnoment variables to laravel's .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...
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).
use LearningLocker;
Now try Interacting with the Learning locker API.
LearningLocker::stores()->get();
Get Learning Locker stores by store id (_id).
LearningLocker::store($id)->get();
Create a new store in Learning Locker.
LearningLocker::store()->create($data);
Update a Learning Locker store by id (_id)
LearningLocker::store($id)->update($data);
Delete a Learning Locker store
LearningLocker::store($id)->delete();
Wiki
Please see Wiki for more information what has changed recently.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email phil.graham@ht2labs.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.