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)0699MITPHPPHP ^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 today

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

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

1677d ago

Major Versions

v0.0.8 → v1.0.02021-11-26

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34573976?v=4)[Alekseev Artem](/maintainers/artem-alekseev)[@artem-alekseev](https://github.com/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

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

592.7k1](/packages/crumbls-layup)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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