Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.25 KB

README.md

File metadata and controls

39 lines (29 loc) · 1.25 KB

GitHub Workflow Status (master) Total Downloads Latest Version License

A PHP package that houses commonly used status classes and enums that can be used in PHP projects.

Installation

composer require codelabmw/statuses

Usage

In your codebase simply import the status class or enum that will best serve your use case.

<?php

use Codelabmw\Statuses\Http;

class IndexController
{
    public function __invoke()
    {
        return response(
            data: 'Hello World',
            statusCode: Http::OK,
        );
    }
}

Epilogue

We would love to hear your feedback and be happy to receive contributions. Give a star if you found the package useful.