Download the PHP
package devgeniem/wp-cron-runner without Composer
On this page you can find all versions of the php package
devgeniem/wp-cron-runner. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor devgeniem Package wp-cron-runner Short Description This mu-plugin lets you run WP cron for a site / network site via a single endpoint. License
GPL-3.0
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
This simple mu-plugin lets you run WordPress cron jobs for a site or all network sites via a single endpoint. This is useful when building a single solution to run WP cron jobs on a hosting platform for different type of WordPress installations.
Or install the plugin manually by copying the plugin.php under your mu-plugin directory and renaming it to wp-cron-runner.php.
Usage
This plugin defines a single endpoint to run WP crons.
On a network installation you only need to request a single site. The plugin will fetch all active sites from the database and call the /wp-cron.php endpoint to run scheduled events.
To enable timed execution create a cronjob to make a HTTP request to the /run-cron endpoint. To test if the plugin is functioning, request the endpoint on a browser to see a list of sites the cron was executed for.
The plugin will exit WordPress execution after a successful request to the endpoint. This will minimize the server load since the plugin code is run when mu-plugins are loaded.
Basic auth
If you are using basic authentication define these constants.
Alternatively you can also use BASIC_AUTH_USER, BASIC_AUTH_PASSWORD and BASIC_AUTH_PASSWORD_HASH constants. When using the latter "{PLAIN}" is removed from the password string.
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package devgeniem/wp-cron-runner contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.