CLAMP-IT / moodlegist

A composer repository for the Moodle plugins database
2 stars 1 forks source link

Moodle Packagist

This is an experimental repository which allows Moodle plugins to be managed using Composer. It is forked from the wpackagist.org project and builds on the work done by Michael Aherne.

Usage

Example composer.json:

{
    "name": "myschool/my-moodle-site",
    "description": "My Moodle site",
    "repositories":[
        {
            "type":"composer",
            "url":"https://my-moodlegist-site"
        }
    ],
    "require": {
        "moodle/moodle":"3.0.0",
        "moodle-plugin-db/mod_attendance":"*",
        "moodle-plugin-db/theme_essential":"*",
    }
}

Moodle core

This does not provide Moodle itself. You may specify a version of moodle to lock packages at that supported release level.

Running Moodle Packagist

Installing

  1. Make sure you have PDO with sqlite support enabled.
  2. Make sure data is writable. Do NOT create data/packages.sqlite, it will be created automatically.
  3. Run composer install.
  4. Point your Web server to public. A .htaccess is provided for Apache.

Updating the database

  1. php bin/console refresh: Refresh the list of plugins from the Moodle plugins repository.
  2. php bin/console: Rebuild all .json files in public/.