PHPackages                             dmpty/scheduling - 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. dmpty/scheduling

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

dmpty/scheduling
================

An independent scheduling for other Laravel's package.

1.0.1(9y ago)016MITPHPPHP &gt;=5.6

Since Feb 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/dmpty/scheduling)[ Packagist](https://packagist.org/packages/dmpty/scheduling)[ RSS](/packages/dmpty-scheduling/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

Scheduling 简介
=============

[](#scheduling-简介)

在 Laravel 中，开发者要使用任务调度必须要将任务写进`app/Console/Kernel.php`文件，而无法包含在 package 中。

Scheduling 允许你在你的 package 中添加 Laravel 任务调度。

安装与使用
-----

[](#安装与使用)

**在项目根目录下运行如下composer命令：**

```
composer require dmpty/scheduling:dev-master

```

**注册服务提供者：**

在`config/app.php`文件中 providers 数组里加入：

```
dmpty\Scheduling\Providers\SchedulingProvider::class,

```

> 注意：请将`SchedulingProvider`在所有使用此包提供的方法定义任务调度的服务提供者之前注册！

**定义任务调度：**

在你的项目中建立任务调度文件并继承`src\Schedule\Scheduling.php`文件，并重写`schedule()`方法，具体使用方法请参考[Laravel任务调度](https://laravel-china.org/docs/5.3/scheduling)。

```
class YourClassName extends Scheduling
{

    public function schedule()
    {
        $this->schedule->call(function () {
            // Job
        })->daily();
    }

}
```

在你项目的`ServiceProvider`中注册这个类：

```
public function register()
{
    $this->app->make('dmpty\ScheduleList')->add(YourClassName::class);
}
```

**大功告成！**

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3418d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelschedulescheduling

### Embed Badge

![Health badge](/badges/dmpty-scheduling/health.svg)

```
[![Health](https://phpackages.com/badges/dmpty-scheduling/health.svg)](https://phpackages.com/packages/dmpty-scheduling)
```

###  Alternatives

[laraveljutsu/zap

A flexible, performant, and developer-friendly schedule management system for Laravel

1.5k97.9k1](/packages/laraveljutsu-zap)[llaski/nova-scheduled-jobs

A Laravel Nova package to view your scheduled jobs.

54442.0k](/packages/llaski-nova-scheduled-jobs)[skywarth/chaotic-schedule

Randomize scheduled command execution time and date intervals

12263.8k](/packages/skywarth-chaotic-schedule)[indeev/laravel-schedule-calendar

Laravel Schedule Calendar - a package providing developers with a concise and visual representation of scheduled tasks, enabling easy analysis of load distribution throughout the day or week for optimized task scheduling.

558.4k](/packages/indeev-laravel-schedule-calendar)[mvenghaus/filament-plugin-schedule-monitor

Filament Plugin for Spatie's Schedule Monitor

1556.5k1](/packages/mvenghaus-filament-plugin-schedule-monitor)[wilianx7/php-recurring

PHP library for generating recurring dates, schedules, and repeated task recurrences.

1047.8k](/packages/wilianx7-php-recurring)

PHPackages © 2026

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