2017 © Pedro Peláez
 

library laravel-enum

A provider for Enums in Laravel.

image

artisaninweb/laravel-enum

A provider for Enums in Laravel.

  • Thursday, June 11, 2015
  • by artisaninweb
  • Repository
  • 1 Watchers
  • 9 Stars
  • 11,800 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 4 Versions
  • 15 % Grown

The README.md

Laravel Enum

This package is a Laravel provider for "gerritdrost/phenum".br/ Credits for making Enum work in PHP go to: G. Drost.br/ More documentation is found here: https://github.com/gerritdrost/phenum., (*1)

Installation

Add artisaninweb/laravel-enum as requirement to composer.json, (*2)

{
    "require": {
        "artisaninweb/laravel-enum": "1.0.*"
    }
}

Add the service provider in config/app.php., (*3)

'Artisaninweb\Enum\EnumServiceProvider'

To use the EnumMap facade add this to the facades in config/app.php., (*4)

'EnumMap' => 'Artisaninweb\Enum\Facades\EnumFacade'

Add a new folder with the name Enums to the directory app/., (*5)

Generating enum

A command to make new enum's., (*6)

php artisan make:enum Fruit

License

The MIT License (MIT), (*7)

Copyright (c) 2014 Michael van de Rijt, (*8)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*9)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*10)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*11)

The Versions

11/06 2015

dev-master

9999999-dev

A provider for Enums in Laravel.

  Sources   Download

MIT

The Requires

 

by Michael van de Rijt

laravel enum

11/06 2015

dev-develop

dev-develop

A provider for Enums in Laravel.

  Sources   Download

MIT

The Requires

 

by Michael van de Rijt

laravel enum

11/06 2015

1.0.1

1.0.1.0

A provider for Enums in Laravel.

  Sources   Download

MIT

The Requires

 

by Michael van de Rijt

laravel enum

11/06 2015

1.0.0

1.0.0.0

A common library for weCare Media projects.

  Sources   Download

MIT

The Requires

 

by Michael van de Rijt

laravel enum