PHP Package: bensampo/laravel-enum
Laravel Enum is a PHP library providing enum support for Laravel Eloquent models, simplifying the use of enums in Laravel applications.
Package Description
Laravel Enum is a versatile PHP library designed to enhance Laravel applications with powerful enum functionality. With this library, developers can seamlessly incorporate enum types into Laravel Eloquent models, streamlining data manipulation and ensuring data integrity. Whether managing status codes, user roles, or other predefined sets of constants, Laravel Enum offers a robust solution for enum handling in Laravel projects.
Download Latest Version: 6.12.1

Previous Versions
Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/bensampo/laravel-enum/6.12.1/loader.php';
require_once 'libs/illuminate/database/12.18.0/loader.php';
require_once 'libs/symfony/translation/7.3.0/loader.php';
use Illuminate\Database\Query\Builder;
$obj = new Builder();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.