Download the PHP package mattyeend/dynamic-enum-generator without Composer
On this page you can find all versions of the php package mattyeend/dynamic-enum-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mattyeend/dynamic-enum-generator
More information about mattyeend/dynamic-enum-generator
Files in mattyeend/dynamic-enum-generator
Download mattyeend/dynamic-enum-generator
More information about mattyeend/dynamic-enum-generator
Files in mattyeend/dynamic-enum-generator
Vendor mattyeend
Package dynamic-enum-generator
Short Description Automatically generate PHP enums from database columns in Laravel.
License MIT
Package dynamic-enum-generator
Short Description Automatically generate PHP enums from database columns in Laravel.
License MIT
Please rate this library. Is it a good library?
Informations about the package dynamic-enum-generator
Dynamic Enum Generator
A Laravel package to automatically generate PHP enums from database columns.
Installation
This package supports Laravel 10, 11, and 12.
Laravel will auto-discover the service provider.
Usage
Generate an enum from a specific table and column:
Options
--table
: The database table name.--column
: The column name to generate the enum from.--path
: Path where enums are saved (default:app/Enums
).
Example
Suppose you have a users
table with a status
column containing:
active
inactive
pending
Running:
Generates app/Enums/Status.php
:
Features
- Works with any table and column
- Creates directories automatically if missing
- Generates native PHP 8.1+ enums
- Perfect for status, role, type fields, etc.
License
This package is licensed under the MIT License.
Contributing
Feel free to fork the repository and submit pull requests for improvements or new features!
All versions of dynamic-enum-generator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
laravel/framework Version ^10.0 || ^11.0 || ^12.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0
laravel/framework Version ^10.0 || ^11.0 || ^12.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0
The package mattyeend/dynamic-enum-generator contains the following files
Loading the files please wait ....