Download the PHP package tolacika/laravel-cron-bundle without Composer
On this page you can find all versions of the php package tolacika/laravel-cron-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tolacika/laravel-cron-bundle
More information about tolacika/laravel-cron-bundle
Files in tolacika/laravel-cron-bundle
Package laravel-cron-bundle
Short Description This package is a hepler for crons without crontab
License MIT
Informations about the package laravel-cron-bundle
Laravel Cron Bundle
Introduction
With this package you can replace the default crontable. Or the Laravel's scheduling feature. This package allows you to define your crons in a database table and manage these from command or from an Admin panel. And you can run it from supervisor.
Tested with Laravel versions
- Laravel 5.6
If you have problems with other versions please submit an issue.
Installion
Use composer to install CronBundle packages:
Once CronBundle
is installed, run the migrations
And in case of need you can pubish the config file with this command:
Running Crons
With crontab
With supervisor
Run as daemon
If you have PCNTL
PHP extension you can start a daemon worker with this command:
Managing crons
From command line
You have several interactive commands to use for creating, deleting, enabling and disabling crons:
cron-bundle:list
- to list all jobcron-bundle:create
- to create a jobcron-bundle:delete {jobId}
- to delete a jobcron-bundle:enable {jobId}
- to enable a jobcron-bundle:disable {jobId}
- to disable a job
From dashboard
Also you have a fancy dashboard to manage your jobs. And from here you can see the run results and change logs.
Dashboard
Authenticating to dashboard
After package installed and migration is done, you can access the dashboard in example.com/CronBundle
By default the dashboard only available in local environment. To change this behaviour place this snippet to your AppServiceProvider
's boot()
method, of course replace the auth()->check()
:
Identifying user for logs
If you are using log type other than none
, its useful to set the current user for logging. You can do this with CronBundle::setUser()
method in your AppServiceProvider
's boot()
method, like this:
Configuration
After publishing the config file, you can see some options in config/cron-bundle.php
. Each config entry is documented here.
Changelog
Important versions listed below. Refer to the Changelog for a full history of the project.
Credits
Bug reports, feature requests, and pull requests can be submitted by following our Contribution Guide.
Contributing & Protocols
- Versioning
- Coding Standards
- Pull Requests
License
This software is released under the MIT License.
© 2017 Laszlo Toth, All rights reserved.
All versions of laravel-cron-bundle with dependencies
laravel/framework Version ^5.1
cron/cron Version ^1.4
ext-json Version *