Simple Moodle plugins manager for Linux systems using Git and PHP.
- Install git and php --
$ sudo apt install php git
- Create a
plugins.jsonfile based off theplugins-dist.json - Usage:
$ php pm.phpand follow onscreen instructions. - (optional) Create a
config.phpfrom the dist file.
There's two ways of running the script:
- Run
$ php pm.phpand follow the onscreen instructions. - If you already know the option you want to run specify it by running
$ php pm.php -xwhere 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.