Download the PHP package ournameismud/current-see without Composer
On this page you can find all versions of the php package ournameismud/current-see. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ournameismud/current-see
More information about ournameismud/current-see
Files in ournameismud/current-see
Package current-see
Short Description Plugin to generate externally accessible feed of versions
License MIT
Informations about the package current-see
Current See plugin for Craft CMS 3.x
Plugin to generate externally accessible feed of versions
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require ournameismud/current-see
- In the Control Panel, go to Settings → Plugins and click the “Install” button for Current See.
Current See Overview
This plugin is designed to scan your Craft build to see what updates are needed and generate an XML feed for those that are out of date. This can ideally be used with services like IFTTT eg to post to Slack or send email notifications.
Configuring Current See
Before using you will need to generate an Api Key for use by the plugin.
Go to Plugin > Settings and save an Api Key. One will automatically be generated for you or add your own.
Using Current See
There are two controller actions currently employed by the plugin. One to scan the Craft installation and the other to provide the feed.
Scan Craft
Because checking Craft versions requires several curl requests to the Craftnet API this service is set to run as background tasks.
The best way to trigger this controller action would be to set a CRON job to call it periodically. This is done by hitting the following action: http://[domain.com]/actions/current-see/default/check?key=[XXX]
. Obviously you want to replace [domain.com]
with your domain name and [XXX]
with the API key saved in your plugin settings. If there is a discrepancy with the local plugin version and that reported by the Craftnet API then a record of this will be saved locally.
Feed Output
You can monitor the output of the feed by using the following controller action: http://[domain.com]]/actions/current-see/default/feed?key=[XXX]
. This will be populated with those plugins (and the Craft CMS) that require updating.
Current See Roadmap
Some things to do, and ideas for potential features:
- Release it
Brought to you by @cole007
Logo by Andrejs Kirma @ Noun Project