PHPackages                             daniieljc/laravel-moodle - 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. daniieljc/laravel-moodle

ActiveLibrary[API Development](/categories/api)

daniieljc/laravel-moodle
========================

Laravel Moodle Client

0.0.3(4y ago)12.3kMITPHP

Since Mar 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/daniieljc/laravel-moodle)[ Packagist](https://packagist.org/packages/daniieljc/laravel-moodle)[ RSS](/packages/daniieljc-laravel-moodle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Laravel Moodle Client
=====================

[](#laravel-moodle-client)

### This is a fork of [ozq/moodle-client](https://github.com/ozq/moodle-client)

[](#this-is-a-fork-of-ozqmoodle-client)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/7520d97f0a81aca0813e799a024da60dac4b5d4bd3de9f62224073667d87132a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616e6969656c6a632f6c61726176656c2d6d6f6f646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/daniieljc/laravel-moodle)

**Laravel****laravel-modules**^5.5^1.0`daniieljc/laravel-moodle` is a Laravel package which created way to interact with moodle through api/webservice.

In adaptation and Work in Progress
----------------------------------

[](#in-adaptation-and-work-in-progress)

Install
-------

[](#install)

To install through Composer, by run the following command:

```
$ composer require daniieljc/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="Daniieljc\LaravelMoodle\LaravelMoodleServiceProvider"
```

### Incorrect Documentation below

[](#incorrect-documentation-below)

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

[](#installation)

The recommended way to install the library is through Composer:

Usage
-----

[](#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);
```

Real Example
------------

[](#real-example)

```
use Daniieljc\LaravelMoodle\Clients\Adapters\RestClient;
use Daniieljc\LaravelMoodle\Connection;
use Daniieljc\LaravelMoodle\Services\Course;
use Daniieljc\LaravelMoodle\Services\User;

class Moodle
{
    protected $client;

    public function __construct()
    {
        $this->client = new RestClient();
    }

    public function getAllClient()
    {
        $service = new User($this->client);
        $users = $service->getAll();
    }

    public function getEnRollUser()
    {
        $service = new Course($this->client);
        $courses = $service->getAll();
        foreach ($courses as $course) {
            $enroll = $service->getCourseEnRolledUser($course->id);
        }
    }
}
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

1561d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/45fd79e965d1266efd66861c2c0f4fa920977d59d104fac86cc135387065b1fa?d=identicon)[daniieljc](/maintainers/daniieljc)

---

Top Contributors

[![daniieljc](https://avatars.githubusercontent.com/u/36238313?v=4)](https://github.com/daniieljc "daniieljc (12 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/daniieljc-laravel-moodle/health.svg)

```
[![Health](https://phpackages.com/badges/daniieljc-laravel-moodle/health.svg)](https://phpackages.com/packages/daniieljc-laravel-moodle)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)[pixelant/pxa-social-feed

Add Facebook, Instagram, and Twitter feeds to your site.

2349.3k](/packages/pixelant-pxa-social-feed)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
