承接 tanujdave/printiapi 相关项目开发

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

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

tanujdave/printiapi

Composer 安装命令:

composer require tanujdave/printiapi

包简介

Notify is messaging service for Omega2. which responsible for sending message to Alpha or AWS sns based on priority.

README 文档

README

Notify is messaging service for Omega2. which responsible for sending message to Alpha or AWS sns based on priority.

Installing Notify as Bundle

The recommended way to install ApiClient is through Composer.

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest stable version of Notify:

php composer.phar require printi/notify

You can then later update notify using composer:

composer.phar update printi/notify

User Guide

Basic notify configuration:

For eg:

notify:
    transition:
        send_to_prepress: high
        prepress_reject: low
        prepress_reject_failed: high
        prepress_approve: high
        send_to_production: high
        waiting_for_upload: high
        new_upload: low
        cancel: high
        finish: high

This configuration is not mandatory for our application. we can override above configuration by creating notify.yaml yaml file under /config/packages folder.

How to use

We can inject Notify as a service into our application.

for eg:

namespace App;
use Printi\NotifyBundle\Notify;

class HelloClass {

    private $notify;
    
    public function __construct(Notify $notify)
    {
        $this->notify = $notify;
    }
    
    public function onTransitionUpdate()
    {
        $message = [
            "order_item_id" => 11111,
            "transition"    => 'prepress_reject',
            "reference"     => null,
            "status_id"     => 50,
            "version"       => 2,
        ];
        $this->notify->notifyOnTransition('prepress_reject', $message);
    }
}

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固