PHPackages                             cyub/laravel-task-scheduler - 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. cyub/laravel-task-scheduler

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

cyub/laravel-task-scheduler
===========================

An Lightweight Laravel Task Scheduling Package

0.1.0(9y ago)4291MITPHPPHP &gt;=5.4.0

Since Jun 30Pushed 7y agoCompare

[ Source](https://github.com/cyub/laravel-task-scheduler)[ Packagist](https://packagist.org/packages/cyub/laravel-task-scheduler)[ RSS](/packages/cyub-laravel-task-scheduler/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Laravel 5 Lightweight Task Scheduler
====================================

[](#laravel-5-lightweight-task-scheduler)

An Lightweight Task Scheduler Package for Laravel 5. This package allows you to dispatch all scheduled jobs and run at the time.

Installation
------------

[](#installation)

Require the package

```
composer require "cyub/laravel-task-scheduler"
```

After adding the package, add the ServiceProvider to the providers array in `config/app.php`

```
'providers' => [
    ...
    Tink\Scheduler\SchedulerServiceProvider::class,
    ...
];
```

Then, publish the scheduler config and migration the database of scheduler

```
php artisan scheduler:install
```

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

[](#configuration)

After Install the package, You will find the Configuration in `config\scheduler.php`

```
return [
    'enable' => true,
    'schedule_table_name' => 'cron_schedule',
    'schedule_generate_every' => 1,
    'schedule_ahead_for' => 50,
    'schedule_lifetime' => 15,
    'history_cleanup_every' => 10,
    'history_success_lifetime' => 600,
    'history_failure_lifetime' => 600,

    'schedules' => [
        'RegisterRedpacket.activate' => [
            'schedule'  => [
                'cron_expr'   => '*/1 * * * *',
            ],
            'run'   => [
                'class' => App\Cron\RegisterRedpacket::class,
                'function'  => 'activate',
                'params'    => ['isSendSmsNotice' => true]
            ],
            'description' => 'activate register redpacket'
        ]
    ]
];
```

### Usage

[](#usage)

### Dispatch job and run

[](#dispatch-job-and-run)

```
php artisan scheduler:dispatch
```

You can use in Cron

```
* * * * * php /your-application-path/artisan scheduler:dispatch >> /dev/null 2>&1
```

### View the scheduler config

[](#view-the-scheduler-config)

```
php artisan scheduler:info config
```

[![scheduler config](https://camo.githubusercontent.com/5606968690e2ba921d2bcb63bba5a0337537a73dfe31cae0b5127a5e38c838ff/687474703a2f2f7374617469632e637975622e7669702f696d616765732f3230313730362f7363686564756c65722d696e666f2d636f6e6669672e6a7067)](https://camo.githubusercontent.com/5606968690e2ba921d2bcb63bba5a0337537a73dfe31cae0b5127a5e38c838ff/687474703a2f2f7374617469632e637975622e7669702f696d616765732f3230313730362f7363686564756c65722d696e666f2d636f6e6669672e6a7067)

### View the scheduler run result stats

[](#view-the-scheduler-run-result-stats)

```
php artisan scheduler:info stats
```

[![scheduler config](https://camo.githubusercontent.com/721864b9cafbc0f9a80478a669c70fa223a4922b362d934cf303378ad289f914/687474703a2f2f7374617469632e637975622e7669702f696d616765732f3230313730362f7363686564756c65722d696e666f2d73746174732e6a7067)](https://camo.githubusercontent.com/721864b9cafbc0f9a80478a669c70fa223a4922b362d934cf303378ad289f914/687474703a2f2f7374617469632e637975622e7669702f696d616765732f3230313730362f7363686564756c65722d696e666f2d73746174732e6a7067)

### Clean the scheduler cache

[](#clean-the-scheduler-cache)

```
php artisan scheduler:clean
```

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3332d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26522383?v=4)[cyub](/maintainers/cyub)[@cyub](https://github.com/cyub)

---

Top Contributors

[![cyub](https://avatars.githubusercontent.com/u/26522383?v=4)](https://github.com/cyub "cyub (2 commits)")

---

Tags

laraveltask scheduling

### Embed Badge

![Health badge](/badges/cyub-laravel-task-scheduler/health.svg)

```
[![Health](https://phpackages.com/badges/cyub-laravel-task-scheduler/health.svg)](https://phpackages.com/packages/cyub-laravel-task-scheduler)
```

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6023.2M7](/packages/propaganistas-laravel-disposable-email)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k161.4k2](/packages/mike-bronner-laravel-model-caching)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M306](/packages/laravel-ai)[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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