Recommend this page to a friend! |
Classes of Pierre-Henry Soria | Just Http Status Codes | README.md | Download |
|
DownloadJust HTTP Status CodesJust HTTP Status Codes is a great way to empower your project with clean practice ?? OverviewSimplest. Clean. Efficient. Just what your project needs ? Don't hardcode HTTP status codes. Magic numbers (hard-coded numbers) make your code hard to be 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 of 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 RequirementPHP v7.3 or newer ? ? Installation
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.
? UsageJust use the beautiful HTTP status code you need. Like below ?
? Who cooked it?[![@phenrysay][twitter-image]](https://twitter.com/phenrysay) [![pH-7][github-image]](https://github.com/pH-7) Pierre-Henry Soria, a highly passionate, zen & pragmatic software engineer ? ??? Are you enjoying it? Offer me a coffee and boost the software development at the same time! ? ? Me building it[![Watch the video][video-thumbnail]](https://www.youtube.com/watch?v=fK9K-UrLHNE) ? Click here to watch on YouTube ?? LicenseJust HTTP StatusCodes is generously distributed under the _MIT_ ? Enjoy! <!-- GitHub's Markdown reference links --> [twitter-image]: https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white [github-image]: https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white [video-thumbnail]: https://i1.ytimg.com/vi/fK9K-UrLHNE/sddefault.jpg |