Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kalitvyan/laravel-enum-localization
Laravel Enums with Localization
https://github.com/kalitvyan/laravel-enum-localization
Last synced: 3 days ago
JSON representation
Laravel Enums with Localization
- Host: GitHub
- URL: https://github.com/kalitvyan/laravel-enum-localization
- Owner: kalitvyan
- License: mit
- Created: 2022-10-11T14:44:24.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-11T14:52:41.000Z (over 2 years ago)
- Last Synced: 2025-01-05T20:11:43.273Z (10 days ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
composer require kalitvyan/laravel-enum-localization
```## Usage
To generate a new Enum run the following artisan command:
```bash
php artisan make:enum MyEnum
```It will generate the following enum: `app/Enums/MyEnum.php`.
## Testing
To run the test suite:
```bash
composer test
```## Credits
- [Kostya Kalitvyansky](https://github.com/kalitvyan)
- [All Contributors](../../contributors)## LICENSE
The MIT License (MIT). Please see [License File](./LICENSE) for more information.