Skip to content

DocasDev/laravel-moodle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Moodle Client

This is a fork of zhiru/laravel-moodle

Latest Version on Packagist Software License Build Status Total Downloads

Laravel Moodle laravel-modules
^10.10 ^4.2 ^1.0

docasdev/laravel-moodle is a Laravel package which created way to interact with moodle through api/webservice.

In adaptation and Work in Progress

Installation

To install through Composer, by run the following command:

$ composer require docasdev/laravel-moodle

The package will automatically register a service provider and alias.

Optionally, publish the package's configuration file by running:

php artisan vendor:publish --provider="DocasDev\LaravelMoodle\LaravelMoodleServiceProvider"

Usage

Create instance of moodle clients, e.g. REST client:

$client = new RestClient();

If there is no build in needed services and entities, you can create it.
Services must extend Service abstract class, entities (as DTO's) must extend Entity abstract class.

Also, you can use moodle client without service layer:

$courses = $client->sendRequest('core_course_get_courses', $parameters);

About

Laravel Client for moodle

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%