Download the PHP package schubu/cronify without Composer

On this page you can find all versions of the php package schubu/cronify. 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 cronify

Cronify Package

Latest Version on Packagist Build Status Quality Score Total Downloads

Add cron-patterns to your models to check for validity. For example: you can check if a given post should be viewed.

Installation

You can install the package via composer:

After you've installed the package please run the installer. It published the migration file.

After that you've got to run your migration

A new crons table is added to your database. It stores your cron entries for your models.

Cronify your models

Next step is to add the Cronable trait to your models.

Usage

Given you've a post model with a title and a body field here is how to add a post with a cron pattern:

In this case you can ask for your pattern if it is due:

In our example it returns true only for the first of january.

Hints

You can add multiple cron patterns. If at least one rule matches you get true.

You can provide a date for the method so you can check the due of your model at a given date.

Validation

You can validate a submitted cron pattern by using

Submit your cron pattern as an associative array with the keys . If you submit the pattern as a string please split it into an array.

Roadmap

comment: <> ()

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of cronify with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
dragonmantank/cron-expression Version ^v3.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 schubu/cronify contains the following files

Loading the files please wait ....