Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/koomai/constants

[Deprecated] Validate and retrieve your application-level global constants
https://github.com/koomai/constants

composer-package constants laravel-package php php-packages php7

Last synced: 3 months ago
JSON representation

[Deprecated] Validate and retrieve your application-level global constants

Awesome Lists containing this project

README

        

# DEPRECATED!

This package has been deprecated. Check out the following packages:

- https://github.com/myclabs/php-enum
- https://github.com/BenSampo/laravel-enum

# Constants

Constants is a helper package for validating and retrieving application-level global constants/enums.

[![Build Status](https://travis-ci.org/koomai/constants.svg?branch=master)](https://travis-ci.org/koomai/constants)
[![StyleCI](https://styleci.io/repos/113857749/shield?branch=master)](https://styleci.io/repos/113857749)

## Contents

- [Installation](#installation)
- [Usage](#usage)
- [Changelog](#changelog)
- [Testing](#testing)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

## Installation

`composer require koomai/constants:^1.0`

## Usage

1. Simply extend your class from `Koomai\Constants\Constants` and define your constants. E.g.,

```