{"repo":"BenSampo/laravel-enum","free":true,"listed":false,"github":"https://github.com/BenSampo/laravel-enum","clone":"git clone https://github.com/BenSampo/laravel-enum.git","description":"Simple, extensible and powerful enumeration implementation for Laravel.","language":"PHP","stars":2030,"topics":["enum","laravel-enum","enumeration","laravel","enum-instantiation","bitwise-enum","enum-library","laravel-package","php"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Using this library is no longer recommended Using this library is no longer recommended, especially for new projects. PHP 8.1 supports enums natively. See https://github.com/BenSampo/laravel-enum/issues/332. About Laravel Enum Simple, extensible and powerful enumeration implementation for Laravel. - Enum key value pairs as class constants - Full-featured suite of methods - Enum instantiation - Flagged/Bitwise enums - Type hinting - Attribute casting - Enum artisan generator - Validation rules for passing enum key or values as input parameters - Localization support - Extendable via Macros Created by Ben Sampson Jump To - Guide - Installation - Migrate to Native PHP Enums - Enum Library - Basic Usage - Enum Definition - Instantiation - Instance Properties - Instance Casting - Instance Equality - Type Hinting - Flagged/Bitwise Enum - Attribute Casting - Migrations - Validation - Localization - Customizing Descriptions - Customizing Class Description - Customizing Value Descriptions - Extending the Enum Base Class - Laravel Nova Integration - PHPStan Integration - Artisan Command List - Enum Class Reference - Stubs Documentation for older versions You are reading the documentation for 6.x . - If you're using Laravel 8 please see the docs for 4.x . - If you're using Laravel 7 please see the docs for 2.x . - If you're using Laravel 6 or below, please see the docs for 1.x . Please see the upgrade guide for information on how to upgrade to the latest version. Guide I wrote a blog po","default_branch":null,"files":null,"tree":[],"storefront":"/r/BenSampo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/BenSampo/laravel-enum/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}