定制 g4/gateway 二次开发

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

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

g4/gateway

最新稳定版本:3.3.0

Composer 安装命令:

composer require g4/gateway

包简介

gateway php library

README 文档

README

gateway - php library

Install

Via Composer

composer require g4/gateway

Usage

use G4\Gateway\Options; use G4\Gateway\Http; $options = new Options(); $options ->addHeader('Accept', 'application/json') // optional ->setTimeout(30) // optional ->setSslVerifyPeer(true); // optional $http = new Http('http://api.url', $options) $http ->setServiceName('maps'); // optional $response = $http->get(['id' => 123]); // post(), put(), delete() echo $response->getCode(); echo $response->getBody();

Development

Install dependencies

$ make install 

Run tests

$ make unit-tests 

License

(The MIT License) see LICENSE file for details...

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 10
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04