Download the PHP package mhary/cron-bundle without Composer

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

MharyCronBundle

Symfony2 / Symfony 3 Bundle for setting up cron jobs via configuration.

Fork of unsupported skck/SbkCronBundle

PHP 7.0+ required

Installation

Prerequisites

This bundle requires Symfony 2.1+

Now install it with this command:

Enable the bundle

You need to add the bundle in app/AppKernel.php

Import Services

The CronBundle depends on certain services, so you need to import the service configuration in app/config/config.yml

Now you should be able to use the Cron Manager.

Usage

Configuring Tasks

Tasks can be configured in app/config/config(_prod).yml.

Each entry in mhary_cron.tasks represents a task.

command

The command to execute. By default the cron manager will prepend php %kernel.root_dir%/console before the command name, so configuring console commands is easy. You can run every command you want with this bundle, read on how to do so.

expression

The cron expression, any valid expression that you would enter in a cron table.

bin

The binary which will execute the command (php by default, you could enter '' to omit the bin in the execution command)

script

The script that will be called (%kernel.root_dir%/console by default).

Runnign the master cron job

Even if you can configure all cron jobs with this bundle, you need to add one line to the crontab manually, the cron:run command.

This will execute the cron manager every minute.

The manager will check which tasks need to be executed and will create background processes for every due task.

License

The MIT License. For the full text of license, please, see LICENSE


All versions of cron-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
symfony/framework-bundle Version 2.8.*|^3.0
mtdowling/cron-expression Version 1.2.*
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 mhary/cron-bundle contains the following files

Loading the files please wait ....