PHPackages                             adiafora/laravel-cron-schedule - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. adiafora/laravel-cron-schedule

ActivePackage[Utility &amp; Helpers](/categories/utility)

adiafora/laravel-cron-schedule
==============================

The ability to run the Laravel task scheduler using different crons

1.6.5(4y ago)443MITPHPPHP ^7.4.0 | ^8.0.0

Since Feb 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/adiafora/laravel-cron-schedule)[ Packagist](https://packagist.org/packages/adiafora/laravel-cron-schedule)[ RSS](/packages/adiafora-laravel-cron-schedule/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (13)Used By (0)

Laravel Cron Scheduling
=======================

[](#laravel-cron-scheduling)

[Laravel Task Scheduling](https://laravel.com/docs/9.x/scheduling) is a great way to manage the cron. But the documentation contains the following warning:

> By default, multiple tasks scheduled at the same time will execute sequentially based on the order they are defined in your schedule method. If you have long-running tasks, this may cause subsequent tasks to start much later than anticipated.

The `runInBackground()` method can help you. But!

> The runInBackground method may only be used when scheduling tasks via the command and exec methods.

What should I do if I use code instead of running commands?..

Using our package, you can run as many cron as you want on the server, specifying its name for each one. And in the `App\Console\Kernel` you can specify which cron should handle this task in the `onCron()` method. A сron launched without specifying a name will be considered a default cron. You don't need to specify anything to put a task in this cron.

Install
-------

[](#install)

Run:

```
    composer require adiafora/laravel-cron-schedule
```

Usage
-----

[](#usage)

### App\\Console\\Kernel

[](#appconsolekernel)

In the `App\Console\Kernel`, replace the line:

```
    use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
```

with this:

```
    use Adiafora\Schedule\Kernel as ConsoleKernel;
```

### Server

[](#server)

Now delete the cron entry on your server:

```
 * * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

```

And add an entry instead:

```
 * * * * * cd /path-to-your-project && php artisan cron-schedule:run >> /dev/null 2>&1

```

Your scheduler is working now as before.

### Another cron

[](#another-cron)

You can add another cron to your server by specifying its name using the option `--cron=`. Let's give it a name `longTime`:

```
 * * * * * cd /path-to-your-project && php artisan cron-schedule:run --cron=longTime >> /dev/null 2>&1

```

And now you can specify the name of this cron for any task in the scheduler.

```
    $schedule->call(function () {
        $this->mailService->send();
        sleep(60);
        $this->mailService->send(true);
    })
        ->onCron('longTime')
        ->dailyAt('03:00');

    $schedule->call(function () {
        $this->report->prepare();
    })
        ->dailyAt('03:00');
```

Note that the task of preparing the report will work exactly at 03:00, without waiting for the emails sending! This way you can create as many crones as you want, give them names and assign tasks to them, distributing them as you see fit. And in each cron, the task will be launched strictly at the specified time, without waiting for other tasks launched at the same time in other crones.

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~6 days

Total

12

Last Release

1526d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d4a7033811d36da4fe0bd43c276f2dd8b2b20915d5541cd02049b7b2258b8d70?d=identicon)[ZhidkovSV](/maintainers/ZhidkovSV)

---

Top Contributors

[![adiafora](https://avatars.githubusercontent.com/u/53189193?v=4)](https://github.com/adiafora "adiafora (14 commits)")

---

Tags

laravelcronschedule

### Embed Badge

![Health badge](/badges/adiafora-laravel-cron-schedule/health.svg)

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[firefly-iii/data-importer

Firefly III Data Import Tool.

8015.8k](/packages/firefly-iii-data-importer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[ronasit/laravel-helpers

Provided helpers function and some helper class.

2085.6k30](/packages/ronasit-laravel-helpers)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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