Download the PHP package rumur/wp-scheduling without Composer

On this page you can find all versions of the php package rumur/wp-scheduling. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

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.
Please rate this library. Is it a good library?

Informations about the package wp-scheduling

wp-scheduling

it's a package that provides a convenient way of working with a WordPress Cron functionality.

Package Installation

Themosis 2.x

Sage 10.x

Minimum Requirements:

How to use it?

Task as a Class.

In order to use a specific class as a Job, you can create any class you want, but this class must have public handle method

Task as a Closure, the call method takes any callable instance.

Task as a function.

In order to set a task as function, you need to implement that function first and as far as the Schedule::call takes any callable instance you just call it.

Available recurrence

Note that these methods should be the last one in the chain, because it registers all options that was build for a task.

Recurrence Description
->runEveryMinute(); Register the task to run every minute
->runEveryFiveMinutes(); Register the task to run every five minutes
->runEveryTenMinutes(); Register the task to run every ten minutes
->runEveryFifteenMinutes(); Register the task to run every fifteen minutes
->runEveryThirtyMinutes(); Register the task to run every thirty minutes
->runHourly(); Register the task to run every hour
->runDaily(); Register the task to run every day
->runWeekly(); Register the task to run every week
->runMonthly(); Register the task to run every month
->runQuarterly(); Register the task to run every quarter
->runYearly(); Register the task to run every year
->runOnceInMinute(); Register the task to run only once in minute
->runOnceInMinutes(45); Register the task to run only once in 45 minutes
->runOnceInFiveMinutes(); Register the task to run only once in 5 minutes
->runOnceInTenMinutes(); Register the task to run only once in 10 minutes
->runOnceInFifteenMinutes(); Register the task to run only once in 15 minutes
->runOnceInThirtyMinutes(); Register the task to run only once in 30 minutes
->runOnceInHour(); Register the task to run only once in one hour
->runOnceInDay(); Register the task to run only once in one day
->runOnceInWeek(); Register the task to run only once in one week
->runOnceInMonth(); Register the task to run only once in one month
->runOnceInQuarter(); Register the task to run only once in a quarter
->runOnceInYear(); Register the task to run only once in a year
->runNow(); Runs the task right now. The method mimics WordPress behavior, designed for a testing purpose.

Available methods

Method Description
->onFailure(callable $thing); Adds listeners for a task that will be run when it's failed.
->onSuccess(callable $thing); Adds listeners for a task that will be run when it's performed.
->pingOnFailure(string $url); Ping the url when the task is failed.
->pingOnSuccess(string $url); Ping the url when the task is successfully performed.
->with($data); The data for a task, that will be passed to Closure or handle method of the task.

How to add your own intervals?

How to set one task for more than one event?

Every chained method returns a PendingTask instance and this task might be assigned for a several recurrence.

How to resign a job?

License

This package is licensed under the MIT License - see the LICENSE.md file for details.


All versions of wp-scheduling with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
opis/closure Version ^3.1
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 rumur/wp-scheduling contains the following files

Loading the files please wait ....