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(8y 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 today

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 32% 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

3238d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7130c37a3972ba7981487e3e1507bc57a7da827ca143c1ed078e8329e22c1cd?d=identicon)[cyub](/maintainers/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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

2.0k5.4M31](/packages/laravolt-avatar)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[livewire/flux

The official UI component library for Livewire.

9385.0M86](/packages/livewire-flux)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)

PHPackages © 2026

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