定制 enigma-php/http 二次开发

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

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

enigma-php/http

最新稳定版本:1.0.1

Composer 安装命令:

composer require enigma-php/http

包简介

A simple supportive package for working with http requests

README 文档

README

EnigmaPHP Http is a small and simple supportive package for working with http requests and responses.

Installing EnigmaPHP Http

composer require enigma-php/http

Usage

Enums

RequestMethod : This class (enum) represents a RequestMethod and therefore contains 9 cases.

Example :

RequestMethod::GET

#with value, results in GET
RequestMethod::GET->value

ResponseStatus: This class (enum) represents a ResponseStatus and therefore contains a large number of cases with a specific response status.

From each status we can use :

  • The numeric value representation with : `ResponseStatus::OK->value`
  • The Explanation like OK with : `ResponseStatus::OK->getExplanation()`
  • The status class like Successful with : `ResponseStatus::OK->getStatusClass()`

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-02