Download the PHP package uthayakumar-dinesh/statusify without Composer

On this page you can find all versions of the php package uthayakumar-dinesh/statusify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package statusify

uthayakumar-dinesh/statusify

Packagist Version License: MIT Total Downloads

A lightweight PHP library that provides HTTP status codes as class constants with utility methods for reverse lookup operations. Perfect for building consistent and type-safe web applications and APIs.

Features

HTTP Status Code Constants: All common HTTP status codes available as class constants 🔍 Reverse Lookup: Static method to get status name from numeric code 🎯 Zero Dependencies: Lightweight package with no external dependencies 🚀 PSR-4 Autoloading: Follows PHP standards for easy integration 📝 IDE Friendly: Full IntelliSense support with class constants ⚡ PHP 7.4+ Compatible with modern PHP versions

Installation

Install via Composer:

Usage

Basic Usage

Laravel Example

Symfony Example

API Response Helper Class

Custom Exception Handler

API Reference

Class Constants

The Statusify class provides HTTP status codes as public constants:

Static Methods

getStatusName(int $code): string

Returns the constant name for a given HTTP status code.

Parameters:

Returns:

Example:

Available HTTP Status Codes

1xx Informational

Code Constant Description
100 CONTINUE Continue
101 SWITCHING_PROTOCOLS Switching Protocols

2xx Success

Code Constant Description
200 OK OK
201 CREATED Created
202 ACCEPTED Accepted
204 NO_CONTENT No Content

3xx Redirection

Code Constant Description
301 MOVED_PERMANENTLY Moved Permanently
302 FOUND Found
304 NOT_MODIFIED Not Modified

4xx Client Errors

Code Constant Description
400 BAD_REQUEST Bad Request
401 UNAUTHORIZED Unauthorized
403 FORBIDDEN Forbidden
404 NOT_FOUND Not Found
405 METHOD_NOT_ALLOWED Method Not Allowed

5xx Server Errors

Code Constant Description
500 INTERNAL_SERVER_ERROR Internal Server Error
501 NOT_IMPLEMENTED Not Implemented
502 BAD_GATEWAY Bad Gateway
503 SERVICE_UNAVAILABLE Service Unavailable

Requirements

Framework Compatibility

This package works seamlessly with:

Testing

Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository

  2. Install dependencies

  3. Create a feature branch

  4. Make your changes

    • Follow PSR-12 coding standards
    • Add tests for any new functionality
    • Ensure all tests pass: composer test
  5. Commit your changes

  6. Push to your fork and create a Pull Request

Development Setup

Code Standards

Issues and Support

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Repository


Made with ❤️ by Uthayakumar Dinesh


All versions of statusify with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package uthayakumar-dinesh/statusify contains the following files

Loading the files please wait ...