Download the PHP package dmpty/scheduling without Composer
On this page you can find all versions of the php package dmpty/scheduling. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dmpty/scheduling
More information about dmpty/scheduling
Files in dmpty/scheduling
Download dmpty/scheduling
More information about dmpty/scheduling
Files in dmpty/scheduling
Vendor dmpty
Package scheduling
Short Description An independent scheduling for other Laravel's package.
License MIT
Package scheduling
Short Description An independent scheduling for other Laravel's package.
License MIT
Please rate this library. Is it a good library?
Informations about the package scheduling
Scheduling 简介
在 Laravel 中,开发者要使用任务调度必须要将任务写进app/Console/Kernel.php
文件,而无法包含在 package 中。
Scheduling 允许你在你的 package 中添加 Laravel 任务调度。
安装与使用
在项目根目录下运行如下composer命令:
注册服务提供者:
在config/app.php
文件中 providers 数组里加入:
注意:请将
SchedulingProvider
在所有使用此包提供的方法定义任务调度的服务提供者之前注册!
定义任务调度:
在你的项目中建立任务调度文件并继承src\Schedule\Scheduling.php
文件,并重写schedule()
方法,具体使用方法请参考Laravel任务调度。
在你项目的ServiceProvider
中注册这个类:
大功告成!
All versions of scheduling with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
The package dmpty/scheduling contains the following files
Loading the files please wait ....