mac1qc/http-status-code 问题修复 & 功能扩展

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

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

mac1qc/http-status-code

最新稳定版本:v1.0.2

Composer 安装命令:

composer require mac1qc/http-status-code

包简介

Helper to get HTTP status code by using common name

README 文档

README

Helper to get HTTP status code by using common name, so it's easier to read while coding.

How to install?

In your project, run in your terminal

$ composer require mac1qc/http-status-code

How to use?

Instead of writting your Status code in number like:

if ($statusCode === 200) {
  return 'something';
}

Do something like:

if ($statusCode === StatusCode::OK->value) {
  return 'something';
}

Wanna show your appreciation?

If you find that library useful, you can buy me a coffee/beer

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-11