承接 webchimp/chapi 相关项目开发

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

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

webchimp/chapi

Composer 安装命令:

composer create-project webchimp/chapi

包简介

CHIMP API

README 文档

README

Why

CHAPI stands for CHIMP API Powerful Integration (clever right?).

CHAPI is our take on how to manage an easy to use but still powerful API framework.

The objectives for CHAPI are:

  • Elegant and simple for the programmer
  • Flexible (CHAPI comes with a lot of automagic but its optional)
  • Composer Compliant

Structure

CHAPI is aimed specifically to generate API's. This being said, the structure was created with RESTful implementations in mind. The main parts of CHAPI are the following:

Request Object

The request object lets you play with the request information made to the API. It comes with:

  • Wrapper functions to manipulate GET, POST or PUT request information
  • Wrapper functions to use $_SESSION or $_FILES
  • Wrapper functions to manipulate Cookies and Server information
  • Tools to get Authorization Headers and bearers

Request Documentation

Response Object

The Response Object is a tool designed to facilitate the way the endpoint responds. It contains special functions to:

  • Set the response status
  • Set the response body
  • Set any header
  • Redirect to special locations
  • Respond json in an easy way

Response Documentation

Router

CHAPI's Router is a very powerful tool. It comes with an engine that lets you add and resolve routes in a straight-forward way.

Main advantages of CHAPI's Router are:

  • Easy create GET, POST, PUT and DELETE routes
  • Named params
  • Optional params
  • Regex supported

Router Documentation

Endpoint Class

The endpoint class uses all the power from Request, Response and Router. It creates a base to create endpoints without too much code. Out of the box, it comes with a specific set of automagic routes that define the basis for simple endpoints needed for CrUD operations and let you extend this however you want.

Endpoint Documentation

App Wrapper

Everything in CHAPI is wrapped, at the end, in an APP object that lets you access everything it has through one point.

APP Documentation

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固