Simple Moodle plugins manager for Linux systems using Git and PHP.
- Install git and php --
$ sudo apt install php git
- Create a
plugins.json
file based off theplugins-dist.json
- Usage:
$ php pm.php
and follow onscreen instructions. - (optional) Create a
config.php
from the dist file.
There's two ways of running the script:
- Run
$ php pm.php
and follow the onscreen instructions. - If you already know the option you want to run specify it by running
$ php pm.php -x
where the 'x' is replaced with the correct option from the list.
c
-- Uses 'git clone' using 'plugins.json' to generate the proper folder structure for plugins.v
-- Checks plugin versions.s
-- Strips git folders in plugins folder.p
-- Purges the plugins folder.r
-- Syncs the plugins folder' contents to the directory specified in config.php.