PHPackages                             lopatin96/lara-enum - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lopatin96/lara-enum

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lopatin96/lara-enum
===================

1.0.2(1y ago)0134MITPHPPHP &gt;=8.4

Since Mar 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/lopatin96/lara-enum)[ Packagist](https://packagist.org/packages/lopatin96/lara-enum)[ RSS](/packages/lopatin96-lara-enum/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

lara-enum
=========

[](#lara-enum)

Installation
------------

[](#installation)

You can install this package via composer:

```
composer require lopatin96/lara-enum
```

How to use
==========

[](#how-to-use)

Publish config and local files:

```
php artisan vendor:publish --tag="lara-enum-config"
```

```
php artisan vendor:publish --tag="lara-enum-lang"
```

### Config

[](#config)

Add key-value to lara-enum config file:

```
return [

    'document-status' => [
        'color' => [
            'pending' => 'amber',
            'in_progress' => 'blue',
            'in_progress_pending' => 'blue',
            'finished' => 'green',
            'error' => 'red',
        ],
    ],

];
```

and call `$document->status->getColorProperty()`.

### Local

[](#local)

Add key-value to lara-enum local file:

```
return [

    'document-status' => [
        'label' => [
            'pending' => 'Pending',
            'in_progress' => 'In progress',
            'in_progress_pending' => 'In progress',
            'finished' => 'Finished',
            'error' => 'Error',
        ],
    ],

];
```

and call `$document->status->getLabelLocal()`.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance46

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

417d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ed7ade2d44e2f66eedf7dec7136ca591145f77d8192bdd789e04797c575d0f3?d=identicon)[Vladyslav Lopatin](/maintainers/Vladyslav%20Lopatin)

---

Top Contributors

[![lopatin96](https://avatars.githubusercontent.com/u/18104593?v=4)](https://github.com/lopatin96 "lopatin96 (4 commits)")

### Embed Badge

![Health badge](/badges/lopatin96-lara-enum/health.svg)

```
[![Health](https://phpackages.com/badges/lopatin96-lara-enum/health.svg)](https://phpackages.com/packages/lopatin96-lara-enum)
```

###  Alternatives

[aryelds/yii2-sweet-alert

A widget to flash sweet alert messages using SweetAlert plugin

3016.9k](/packages/aryelds-yii2-sweet-alert)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
