PHPackages                             artem-alekseev/dictionaries - 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. artem-alekseev/dictionaries

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

artem-alekseev/dictionaries
===========================

Use dictionary in laravel

v1.0.8(4y ago)0617MITPHPPHP ^7.0|^8.0

Since Nov 26Pushed 4y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (18)Used By (0)

Installing
----------

[](#installing)

### Composer

[](#composer)

How install package

```
composer require artem-alekseev/dictionaries:1.*

```

Usage
-----

[](#usage)

### Make Dictionary

[](#make-dictionary)

Use laravel artisan command

```
php artisan make:dictionary NameDictionary

```

In dictionary

```
class NameDictionary extends Dictionary
{
    const ONE = 1;
    const TWO = 2;

    public static function getDictionary(): array
    {
        return [
            self::ONE => 'One',
            self::TWO => 'Two',
        ];
    }
}
```

### Use in code

[](#use-in-code)

```
echo NameDictionary::ONE; // out 1
echo NameDictionary::getValueData($this->id); // id = 2 // out 'Two'
echo NameDictionary::getRange(); // out [1,2] use in validation
echo NameDictionary::getStringRange(); // out '1,2' use in validation
echo NameDictionary::getDictionary() // out [1 => 'One', 2 => 'Two'] use in selector form field
```

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

17

Last Release

1624d ago

Major Versions

v0.0.8 → v1.0.02021-11-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/12117a206a3ba2a59ea78e1c724cf5e1eaee6b140ded2d0ad730de14115ef753?d=identicon)[artem-alekseev](/maintainers/artem-alekseev)

---

Top Contributors

[![artem-alekseev](https://avatars.githubusercontent.com/u/34573976?v=4)](https://github.com/artem-alekseev "artem-alekseev (16 commits)")

### Embed Badge

![Health badge](/badges/artem-alekseev-dictionaries/health.svg)

```
[![Health](https://phpackages.com/badges/artem-alekseev-dictionaries/health.svg)](https://phpackages.com/packages/artem-alekseev-dictionaries)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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