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.
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":"*",
}
}
This does not provide Moodle itself. You may specify a version of moodle to lock packages at that supported release level.
- Make sure you have PDO with sqlite support enabled.
- Make sure
data
is writable. Do NOT createdata/packages.sqlite
, it will be created automatically. - Run
composer install
. - Point your Web server to
public
. A.htaccess
is provided for Apache.
php bin/console refresh
: Refresh the list of plugins from the Moodle plugins repository.php bin/console
: Rebuild all.json
files inpublic/
.