承接 ghostwalker/jobber 相关项目开发

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

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

ghostwalker/jobber

Composer 安装命令:

composer require ghostwalker/jobber

包简介

Powerful, simple, message queue client

README 文档

README

Welcome to Jobber 👋

Version License: MIT

Powerful, simple, message queue client

Install

composer require ghostwalker/jobber

Usage

Create bootServer.php file in your main directory You can also specify the address and port for the server and client, as well as specify the directory where your classes are stored

<?php
/**
 * boot JobberServer Class
 */
use GhostWalker\Jobber\JobberServer;

require_once __DIR__ . 'vendor/autoload.php';

JobberServer::$directory = __DIR__ . '/jobs';
JobberServer::$ipPort = '127.0.0.1:6969';
JobberServer::bootSystem();

Start server

php bootServer.php //To keep the process running permanently in the background,
you should use a process monitor such as Supervisor to ensure that the queue worker does not stop running.

create a class in the directory you specified and create a "__construct" method

with arguments that accepts an array of $date

<?php

class test {
    
    protected array $data = [];
    
    public function __construct(array $data)
    {
       $this->data = $data //array(int(999))
    }
}

Create a client class and load a new task

<?php

use \GhostWalker\Jobber\JobberClient;

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

JobberClient::$ipPort = '127.0.0.1:6969';
$jobber = new JobberClient();
$jobber->addTask(test::class, [999]);
$jobber->addTask(test1::class, [123]);

Author

👤 GhostWalker

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Work on

the application is based on ReactPhp, as well as a robot-loader for loading classes

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2022 GhostWalker.
This project is MIT licensed.

❤️ readme

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: mit
  • 更新时间: 2022-08-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固