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.

Current Version: 6.12.1
Last Updated: Date not available
PHP Requirement: ^8
Dependencies:
illuminate/database
symfony/translation
⚠️ To ensure full functionality, the above dependencies might be required.

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.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 6.12.1

Download Download v6.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.