https://github.com/dvlpr1996/php-enum-helper-trait
Php Enum Helper Trait
https://github.com/dvlpr1996/php-enum-helper-trait
enum enum-helper enum-helper-trait enumeration php php-enum php-enum-helper-trait php-trait-helper php-traits php8
Last synced: 9 months ago
JSON representation
Php Enum Helper Trait
- Host: GitHub
- URL: https://github.com/dvlpr1996/php-enum-helper-trait
- Owner: dvlpr1996
- License: mit
- Created: 2024-04-24T18:25:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T20:57:28.000Z (almost 2 years ago)
- Last Synced: 2025-05-28T21:42:37.742Z (10 months ago)
- Topics: enum, enum-helper, enum-helper-trait, enumeration, php, php-enum, php-enum-helper-trait, php-trait-helper, php-traits, php8
- Language: PHP
- Homepage: https://github.com/dvlpr1996/php-enum-helper-trait/wiki/Overview
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Php Enum Helper Trait
[](https://opensource.org/licenses/MIT)
[](https://packagist.org/packages/dvlpr1996/php-enum-helper-trait)
[](https://packagist.org/packages/dvlpr1996/php-enum-helper-trait)
This package provides a trait designed to simplify and enhance the functionality of enums in PHP applications. It offers utility methods and features that make working with enums more intuitive and efficient, ideal for developers looking to streamline their enum handling in PHP applications.
## Requirements
- PHP 8.1 or higher
## Install
You can install the package via composer:
```bash
composer require dvlpr1996/php-enum-helper-trait
```
## Usage
```php
use dvlpr1996\PhpEnumHelperTrait\EnumHelperTrait;
enum Foo: string {
use EnumHelperTrait;
// Your Additional Cases, Methods And Properties...
}
```
## Documentation
See the [documentation](https://github.com/dvlpr1996/php-enum-helper-trait/wiki) for detailed installation and usage instructions.
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## issues
If you discover any issues, please using the issue tracker.
## Credits
- [Nima jahan bakhshian](https://github.com/dvlpr1996)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.