Skip to content

Cronable is a simple script that allows auto-updating CIDRAM and phpMussel via cronjobs.

License

Notifications You must be signed in to change notification settings

Maikuolan/Cronable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP >= 5.4 License: MIT PRs Welcome

Cronable.

Cronable is a simple script that allows auto-updating CIDRAM >= 1.2 and phpMussel >= 1.1 < 3.0 via cronjobs.


How to install:

You can download the file containing the class, Cronable.php, directly from this repository, or, if you'd prefer, you can install it using Composer:

composer require maikuolan/cronable

Cronable is a stand-alone class that has no dependencies other than PHP, the cURL extension of PHP, and something to trigger it at the desired interval (generally, a cron manager of some description), and so, downloading it is all there really is to "installing" it.


How to use:

For auto-updating CIDRAM or phpMussel with Cronable, front-end management will need to be enabled. Create a new account from the accounts page for Cronable to use, and set the permissions for this new account to "Cronable" (the "Cronable" permissions type is intended only for Cronable, and shouldn't be used for anything else). Take note of the username and password that you choose for this new account, because you'll need it in a moment.

Next, check the examples.php file, and using the instructions and examples given in the file, create your update tasks as per necessary.

Using your cron manager or other triggering mechanism, create a new cron task with the desired update interval (please don't choose an excessively short interval, as the inbound requests received by the servers containing the updates may perceive this as abuse, and you may blocked by them as a consequence; checking for updates once a day should be more than enough; most updates tend to be released once per week or once per month anyhow), pointing to the file containing your Cronable update tasks.

That's everything. :-)


Other information:

Licensing:

MIT License.

For support:

Please use the issues page of this repository.


Last Updated: 21 November 2021 (2021.11.21).