LaravelPackages.net
Acme Inc.
Toggle sidebar
kalitvyan/laravel-enum-localization

Laravel Enums with Localizationgit

4
0
v1.0.0
About kalitvyan/laravel-enum-localization

kalitvyan/laravel-enum-localization is a Laravel package for laravel enums with localizationgit. It currently has 0 GitHub stars and 4 downloads on Packagist (latest version v1.0.0). Install it with composer require kalitvyan/laravel-enum-localization. Discover more Laravel packages by kalitvyan or browse all Laravel packages to compare alternatives.

Last updated

Laravel Enums with Localization

This package helps to working with Enums and its values (aka Backed enums) when you need different languages to use. It includes an artisan command to generate Enum.

Installation

composer require kalitvyan/laravel-enum-localization

Usage

To generate a new Enum run the following artisan command:

php artisan make:enum MyEnum

It will generate the following enum: app/Enums/MyEnum.php.

Testing

To run the test suite:

composer test

Credits

LICENSE

The MIT License (MIT). Please see License File for more information.

Comments