PHPackages                             tolacika/laravel-cron-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. tolacika/laravel-cron-bundle

ActiveLibrary[Admin Panels](/categories/admin)

tolacika/laravel-cron-bundle
============================

This package is a hepler for crons without crontab

v1.1.1(6y ago)82.2k2[1 issues](https://github.com/tolacika/laravel-cron-bundle/issues)MITPHPPHP ^7.1.3

Since Apr 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tolacika/laravel-cron-bundle)[ Packagist](https://packagist.org/packages/tolacika/laravel-cron-bundle)[ RSS](/packages/tolacika-laravel-cron-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Laravel Cron Bundle
===================

[](#laravel-cron-bundle)

Introduction
------------

[](#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
----------------------------

[](#tested-with-laravel-versions)

- Laravel 5.6

If you have problems with other versions please submit an issue.

Installion
----------

[](#installion)

Use composer to install CronBundle packages:

```
composer require Tolacika/Laravel-Cron-Bundle
```

Once `CronBundle` is installed, run the migrations

```
php artisan migrate
```

And in case of need you can pubish the config file with this command:

```
php artisan vendor:publish --provider="Tolacika\CronBundle\CronBundleServiceProvider"
```

Running Crons
-------------

[](#running-crons)

### With crontab

[](#with-crontab)

```
* * * * * php /path-to-your-project/artisan cron-bundle:execute >> /dev/null

```

### With supervisor

[](#with-supervisor)

```
[program:cron_bundle]
command=php artisan cron:start --blocking
process_name=%(program_name)s_%(process_num)02d
numprocs=1
autostart=true
autorestart=true
startsecs=0
user=www-data
redirect_stderr=true
stderr_logfile = /var/log/supervisor/cron_bundle_err.log
stdout_logfile = /var/log/supervisor/cron_bundle_stdout.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
```

### Run as daemon

[](#run-as-daemon)

If you have `PCNTL` PHP extension you can start a daemon worker with this command:

```
php artisan cron-bundle:start
```

Managing crons
--------------

[](#managing-crons)

### From command line

[](#from-command-line)

You have several interactive commands to use for creating, deleting, enabling and disabling crons:

- `cron-bundle:list` - to list all job
- `cron-bundle:create` - to create a job
- `cron-bundle:delete {jobId}` - to delete a job
- `cron-bundle:enable {jobId}` - to enable a job
- `cron-bundle:disable {jobId}` - to disable a job

### From dashboard

[](#from-dashboard)

Also you have a fancy dashboard to manage your jobs. And from here you can see the run results and change logs.

[![Jobs list](/src/Resources/Images/cron-bundle-dashboard.png)](/src/Resources/Images/cron-bundle-dashboard.png)

[![Job edit page](/src/Resources/Images/cron-bundle-edit.png)](/src/Resources/Images/cron-bundle-edit.png)

Dashboard
---------

[](#dashboard)

### Authenticating to 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()`:

```
use Tolacika\CronBundle\CronBundle;

/**
 * Bootstrap any application services.
 *
 * @return void
 */
public function boot()
{
    // ...
    CronBundle::auth(function ($request) {
        // returns true or false
        return auth()->check();
    });
    // ...
}
```

### Identifying user for logs

[](#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:

```
use Tolacika\CronBundle\CronBundle;

/**
 * Bootstrap any application services.
 *
 * @return void
 */
public function boot()
{
    // ...
    CronBundle::setUser(function ($request) {
        // the return type must be an integer, or null
        return auth()->user() ? auth()->user()->id : null;
    });
    // ...
}
```

Configuration
-------------

[](#configuration)

After publishing the config file, you can see some options in `config/cron-bundle.php`. Each config entry is documented here.

Changelog
---------

[](#changelog)

Important versions listed below. Refer to the [Changelog](CHANGELOG.md) for a full history of the project.

Credits
-------

[](#credits)

- [Laszlo Toth](https://github.com/tolacika)

Bug reports, feature requests, and pull requests can be submitted by following our [Contribution Guide](CONTRIBUTING.md).

Contributing &amp; Protocols
----------------------------

[](#contributing--protocols)

- [Versioning](CONTRIBUTING.md#versioning)
- [Coding Standards](CONTRIBUTING.md#coding-standards)
- [Pull Requests](CONTRIBUTING.md#pull-requests)

License
-------

[](#license)

This software is released under the [MIT](LICENSE) License.

© 2017 Laszlo Toth, All rights reserved.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Total

4

Last Release

2550d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7438e2f3c19ee3f2a58ede8eb4b77d4e1ca4f5aa33ab1dbd9f192a09c16e793b?d=identicon)[tolacika](/maintainers/tolacika)

---

Top Contributors

[![tolacika](https://avatars.githubusercontent.com/u/1866861?v=4)](https://github.com/tolacika "tolacika (13 commits)")

---

Tags

admin-panelcommandcron-jobscrontabdashboardlaravellaravel-schedulepackageschedulingsupervisorlaravelcroncommandsupervisor

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tolacika-laravel-cron-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/tolacika-laravel-cron-bundle/health.svg)](https://phpackages.com/packages/tolacika-laravel-cron-bundle)
```

###  Alternatives

[studio/laravel-totem

A Laravel package to manage your cron jobs through a beautiful dashboard

1.8k1.1M](/packages/studio-laravel-totem)[gecche/laravel-multidomain

Laravel App on a subdomains, multi-tenancy setting

1.1k227.8k6](/packages/gecche-laravel-multidomain)[conedevelopment/root

Root is an admin package for Laravel applications.

3713.1k2](/packages/conedevelopment-root)[weblabormx/laravel-front

Front is a administration panel for Laravel. It allows you to create CRUD easily in minutes. It allows to fully customize any part of the code.

1111.1k](/packages/weblabormx-laravel-front)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
