承接 ph-7/just-http-status-codes 相关项目开发

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

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

ph-7/just-http-status-codes

最新稳定版本:v1.1.7

Composer 安装命令:

composer require ph-7/just-http-status-codes

包简介

Just all HTTP status codes

README 文档

README

Empowers your projects with elegant clean practices 💫

📄 Overview

Simplest. Clean. Efficient. Just what your project needs 🧹

Ko Fi - Offer Me A Coffee

Don't hardcode HTTP status codes. Magic numbers (hard-coded numbers) make your code hard to read and understood.

When you have all status codes are stored in readable constants, it makes the development of your application so easy and enjoyable.

It prevents you from using the wrong HTTP status code and saves time and energy when developing an API that involves various HTTP status codes to be sent.

PHP HTTP Status Codes constants

🐘 PHP Requirement

PHP v7.3 or newer 🚀

🛠 Installation

composer require ph-7/just-http-status-codes

If you don't already use composer in your project, include Composer's autoload as below in the main index file, bootstrap or in another file that is always included in all pages.

require __DIR__ . '/vendor/autoload.php';

🥳 Usage

Just use the beautiful HTTP status code you need.

Like below 👇

use PH7\JustHttp\StatusCode;


StatusCode::OK; // This is 200

StatusCode::CREATED; // 201 code

StatusCode::NOT_FOUND; // 404

StatusCode::INTERNAL_SERVER_ERROR; // 500

💪 Building this library, together! 🚀

Watch the video

👉 Click here to watch on YouTube

🧑‍🍳 Who made this...?

Pierre-Henry Soria

Pierre-Henry Soria, a highly passionate, zen & pragmatic software engineer 😊

️☕️ Are you enjoying it? Offer me a coffee (what's your favorite coffee? Mine is almond flat white 😋)

@phenrysay pH-7 YouTube Tech Videos

⚖️ License

Just HTTP StatusCodes is generously distributed under the MIT 🎉 Enjoy!

统计信息

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

GitHub 信息

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

其他信息

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