swissfreecommerce/connect 问题修复 & 功能扩展

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

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

swissfreecommerce/connect

最新稳定版本:1.5

Composer 安装命令:

composer require swissfreecommerce/connect

包简介

Simple Http Connection with fast cgi client

README 文档

README

This package is used to connect microservices to each other and can be used to make http requests between them through socket.

Any http request including get, post, put, delete, and patch that they want together can be handled with it.

This package is a simplified version of the hollodotme/fast-cgi-client package.

Because working with this package was more difficult than expected, we simplified this package and created a JSON connection between microservices as follows.

Install via composer

Run the following command to pull in the latest version:

composer require swissfreecommerce/connect

Documentation

variable name

Get Request

To send the get request, you must run the following command

use SwissFreeCommerce\Connect\Connection\Json;

$connectJson = new Json(script_file_name, hostname, port);

$connectJson->get('url address', 'array query params', 'another http variable');

Post Request

To send the post request, you must run the following command

use SwissFreeCommerce\Connect\Connection\Json;

$connectJson = new Json(script_file_name, hostname, port);

$connectJson->post('url address', 'array params form data', 'array query params', 'another http variable');

Put Request

To send the put request, you must run the following command

use SwissFreeCommerce\Connect\Connection\Json;

$connectJson = new Json(script_file_name, hostname, port);

$connectJson->put('url address', 'array params form data', 'array query params', 'another http variable');

Output Data

The output of all parts is as follows

{
    'status': 'status request, for example: 200 or 401',
    'body': 'response body object'
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固