piou-piou/ribs-cron-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

piou-piou/ribs-cron-bundle

Composer 安装命令:

composer require piou-piou/ribs-cron-bundle

包简介

RibsCronBundle is a bunlde to use cron via curl a url of you website with cron based time

README 文档

README

RibsCronBundle is a bunlde to use cron via curl a url of you website with cron based time

Create you first method called by ribs_cron

Craete a new Controller class and extends it to RibsCronController. Create a method with the name you want like this example :

<?php

namespace App\Controller;

use PiouPiou\RibsCronBundle\Controller\RibsCronController;

class TestCronController extends RibsCronController
{
    public function testCronCall()
    {
        // do action called by /ribs-cron
    }
}

Now to make this method called by /ribs-cron url you must add it to ribs_cron.yaml config file like this :

parameters:
  data_directory: '%kernel.project_dir%/data/'
  ribs_cron:
    testCronCall: "* * * * *"

After that each time you have in your crontab file a curl to /ribs-cron url testCronCall method will be executed each minute. Parameters in quote run like standard cron time system.

How to call your cron url at any time with external url

In you .env file you can add two parameters : IP_CRON_EXTERNAL to add external IP that can call your cron IP_CRON_INTERNAL= internal IP of the server that can call your cron

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固