PHPackages                             nasiroff/eav - 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. nasiroff/eav

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

nasiroff/eav
============

Eav For Artisan.

10PHP

Since Jul 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nasiroff/eav)[ Packagist](https://packagist.org/packages/nasiroff/eav)[ RSS](/packages/nasiroff-eav/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

> WIP

[![EAV](https://camo.githubusercontent.com/1ebdb4679bf53107e914eac37145849435013a910db492298bfb7523add8ae76/68747470733a2f2f692e696d6775722e636f6d2f466d46515838452e706e67)](https://camo.githubusercontent.com/1ebdb4679bf53107e914eac37145849435013a910db492298bfb7523add8ae76/68747470733a2f2f692e696d6775722e636f6d2f466d46515838452e706e67)

Entity–attribute–value model (EAV) is a data model to encode, in a space-efficient manner, entities where the number of attributes (properties, parameters) that can be used to describe them is potentially vast, but the number that will actually apply to a given entity is relatively modest.

> [wikipedia](https://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model)

Documentation
-------------

[](#documentation)

[EAV Documentation](https://sunel.github.io/eav/)

When to Use
-----------

[](#when-to-use)

- Let us consider a situation where a number of different attributes can be used to describe an entity, but only few attributes actually apply to each one. One option is to create a table with a column representing each attribute; this is suitable for entity with a fixed number of attributes, where all or most attributes have values for a most objects. However, in our case we would end up with records where **majority of columns would be empty**, because attributes may be unknown or inapplicable. To solve the above problem you can apply the EAV (Entity, Attribute, Value) model.
- Have a loose schema that is likely to change over time. Table holding attributes describing an entity is not limited to a specific number of columns, meaning that it doesn't require a schema redesign every time new attribute needs to be introduced. The number of attributes can grow vertically as the database evolves, without the need for structure changes.

Limitation of EAV
-----------------

[](#limitation-of-eav)

- In EAV model the entity data is more fragmented and so selecting an entire entity record requires multiple table joins. [Please Check this ](https://sunel.github.io/eav/master/ideology/flat-table.html)

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff5f0ad69e25278b6fef8a24e1baf19c37833de0ec37e2417d9ab2ada2960b3f?d=identicon)[vuqar1991](/maintainers/vuqar1991)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/nasiroff-eav/health.svg)

```
[![Health](https://phpackages.com/badges/nasiroff-eav/health.svg)](https://phpackages.com/packages/nasiroff-eav)
```

PHPackages © 2026

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