composer.json: >=8.1)curl and jsonapi.github.comThe plugin loads its classes from src/ through the Composer autoloader vendor/autoload.php. That file is the only runtime dependency: the plugin has no third-party packages, and composer install --no-dev only generates the autoloader.
If
vendor/autoload.phpis missing, the plugin file loads without error, but opening the plugin list fails because the classes cannot be found. Always generate the autoloader before you enable the plugin.
Option 1: ZIP
include/plugins/update-check/ in your osTicket directory, so that plugin.php sits directly in that folder.composer install --no-dev in the plugin folder if there is no vendor/ folder with autoload.php.Option 2: Git clone
cd /path/to/osticket/include/plugins
git clone https://github.com/markus-michalski/osticket-plugin-update-check.git update-check
cd update-check
composer install --no-dev
The plugin is a singleton: when you enable it, it creates an instance itself if needed, with the note Auto-created singleton instance. You do not have to create an instance by hand. The badges appear the next time the plugin list loads. The optional settings are described under Configuration.
Replace the folder include/plugins/update-check/ with the new version and run composer install --no-dev again if needed. The plugin has no database tables and no migrations. Responses that are already cached stay valid until they expire, see Technical details.
include/plugins/update-check/.osticket-update-check/ under sys_get_temp_dir()). You can delete that folder by hand after removal.