定制 jiromm/mother-of-daemons 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jiromm/mother-of-daemons

Composer 安装命令:

composer require jiromm/mother-of-daemons

包简介

The Mother of Daemons

README 文档

README

The Mother of Deamons

Quickstart example

Here is an example of MotherOfDaemons which runs two daemons and manage them depends on their configuration

See also the examples.

<?php

use Jiromm\MotherOfDaemons\MotherOfDaemons;
use Jiromm\MotherOfDaemons\Daemon\DaemonCollection;
use Jiromm\MotherOfDaemons\Exception\MotherOfDaemonException;
use Examples\ImageHandlerDaemon;

require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../examples/ImageHandlerDaemon.php';

try {
    $daemons = new DaemonCollection();

    $daemons->add(new ImageHandlerDaemon('buildings'));
    $daemons->add(new ImageHandlerDaemon('animals'));

    $mod = new MotherOfDaemons($daemons);
    $mod->run(true);
} catch (MotherOfDaemonException $e) {
    echo $e->getMessage() . PHP_EOL;
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固