vxm/yii2-gateway-clients 问题修复 & 功能扩展

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

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

vxm/yii2-gateway-clients

Composer 安装命令:

composer require vxm/yii2-gateway-clients

包简介

An abstraction layer provide the skeleton for build rest api client (1-n).

README 文档

README

Skeleton for build rest api client (1-n).

Latest Stable Version Total Downloads Build Status Code Coverage Scrutinizer Code Quality Yii2

This Yii2 extension is an abstraction layer provide the skeleton for build an api client (1-n).

Requirements

Installation

The preferred way to install this yii2-extension is through composer.

composer require "vxm/yii2-gateway-clients"

or add

"vxm/yii2-gateway-clients": "*"

to the require section of your composer.json.

Usage

This is an abstraction layer, you MUST be create your own classes implements it. It designed for DRY principle when you need to build rest api client.

Abstract Classes Introduce

An abstract classes have been designed for implemented an interfaces. You should extends it for easier implements interfaces on your own classes.

Abstract Class Details
BaseGateway Implemented GatewayInterface, abstract method your own class must create: requestInternal, getBaseUrl.
BaseClient Implemented ClientInterface, it not have an abstract method your own class should add properties an information for access gateway server api.
ResponseData Abstract method your own class must create is getIsOk for end-user checking response data get from gateway server api is valid or not.

Need an example?

Click here to read simple example.

Project using it

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-05-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固