承接 kakadu-dev/php-ijson-microservices 相关项目开发

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

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

kakadu-dev/php-ijson-microservices

Composer 安装命令:

composer require kakadu-dev/php-ijson-microservices

包简介

Package for create microservice architecture based on PHP.

README 文档

README

GitHub release (latest SemVer)

  • Gateway entrypoint (in-progress)
  • Microservice worker

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist kakadu-dev/php-ijson-microservices "*"

or add

"kakadu-dev/php-ijson-microservices": "@dev"

to the require section of your composer.json file.

Usage

Example microservice:

use Kakadu\Microservices\Microservice;

$app = Microservice::create('my-microservice', [
    'ijson' => 'http://127.0.0.1:8001',
    'env'   => 'dev',
], true);

$app->start(function ($method, $params) {
    // Run method with params
    // Return result

    return ['hello' => 'world'];
});

Start Inverted JSON:

version: '3.7'

services:
  ijson:
    image: lega911/ijson
    container_name: base-ijson
    ports:
      - 8001:8001

Send POST request directly to: http://localhost:8001

curl http://127.0.0.1:8001/my-microservice -d '{"id": 1, "params":{"test":1}}'

If you run gateway. Run POST request to: http://localhost:3000

{
  "id": 1,
  "method": "my-service.test-method",
  "params": {
    "test": 1
  }
}

That's all. Check it.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固