承接 ziya/yii-cron 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ziya/yii-cron

最新稳定版本:0.0.0.3

Composer 安装命令:

composer require ziya/yii-cron

包简介

Yii cron package

README 文档

README

Installation

The preferred way to install this extension is through composer.

Either run

composer require ziya/yii-cron

or add

"ziya/yii-cron": "*"

to the require section of your composer.json file.

Configuration

Before using you must migrate

php yii migrate --migrationPath="@vendor/ziya/yii-cron/src/migrations

Usage

Send sms cron

<?php

class SendSmsCron extends \Ziya\YiiCron\BaseCron
{
    public static function key(){
        return 'send_sms_cron'
    }

    public function execute(){
        $sms = new Sms();
        $sms->phone_number = 123456789;
        $sms->body = "Hello world !";
        $sms->send();
    }
}
?>

Running crons

<?php

$list = [
    SendSmsCron::class
];


$cron = new \Ziya\YiiCron\CronList($list);
$cron->execute();
?>

统计信息

  • 总下载量: 3.47k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-03-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固