Manifest
The manifest file contains information that Saturn needs to load the plugin, all manifest attributes must exist or the plugin will not be loaded.
Here's an example of a plugin manifest.json file:
Manifest keys and what they do
Slug
Your Saturn provided plugin 'slug', this tells Saturn where to look for updates, and to automatically generate a link to your plugin page.
A slug is basically a unique ID for you! It stops plugins from clashing and causing nasty errors, it's also how PluginManager understands what plugin is this plugin.
Even if you change the name of your plugin, you slug won't change. It's permanent.
There are no examples - use your slug.
Name
The name key does what it says on the tin, it's the plugin's name!
Description
Another easy one, it's a quick description for your plugin!
Author
This can be a single author, or a list. It tells the people using it who made it.
Version->Plugin
Your plugin version, that's up to you! It must only consist of numbers and periods. It's used whilst checking for plugin updates.
Version->Saturn
The version(s) of Saturn that your plugin is compatable with.
Dependencies
Does you plugin rely on another plugin to work? If so, this section is for you! If not, well you need it anyways.
Conflicts
This section is for if you're aware of your plugin conflicting with another plugin, for example if you create a custom control panel plugin - you don't want users to use any others!
Hibernate
Startup
The files that Saturn should load into the program. These files should have executable PHP outside of a class, Saturn doesn't load classes automatically.
Conventionally, you should only load one file which in turn loads and starts your plugin. But if you want to you can load more, it's up to you really - we don't care.
Last updated