PHPackages                             ci-moodle-helper/moodle-api - 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. ci-moodle-helper/moodle-api

ActiveLibrary[API Development](/categories/api)

ci-moodle-helper/moodle-api
===========================

A PHP library for interacting with Moodle REST API

v1.0.0(7mo ago)00[1 PRs](https://github.com/reandimo/ci-moodle-helper/pulls)MITPHPPHP &gt;=7.4

Since Oct 15Pushed 6mo agoCompare

[ Source](https://github.com/reandimo/ci-moodle-helper)[ Packagist](https://packagist.org/packages/ci-moodle-helper/moodle-api)[ RSS](/packages/ci-moodle-helper-moodle-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

CI Moodle Helper - Moodle API Library
=====================================

[](#ci-moodle-helper---moodle-api-library)

A comprehensive PHP library for interacting with Moodle's REST API. This library provides easy-to-use methods for user management, course operations, enrollment, group management, and more.

Features
--------

[](#features)

- **User Management**: Create, update, and retrieve user information
- **Course Operations**: Get courses, course groups, and course-related data
- **Enrollment Management**: Enroll and unenroll users from courses
- **Group Management**: Create groups, add members, and manage group operations
- **Activity Completion**: Mark activities as completed and track progress
- **Grade Management**: Retrieve user grades and course grade items
- **Authentication**: Generate user authentication URLs
- **Error Handling**: Comprehensive error handling with try-catch blocks

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

[](#installation)

### Via Composer

[](#via-composer)

```
composer require ci-moodle-helper/moodle-api
```

### Manual Installation

[](#manual-installation)

1. Clone or download this repository
2. Include the autoloader in your project:

```
require_once 'vendor/autoload.php';
```

Quick Start
-----------

[](#quick-start)

```
