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

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

congraph/eav
============

v2.0.3(2mo ago)01682PHPPHP ^8.3 || ^8.4 || ^8.5

Since Nov 29Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/congraphcms/eav)[ Packagist](https://packagist.org/packages/congraph/eav)[ RSS](/packages/congraph-eav/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (16)Versions (10)Used By (2)

congraph/eav
============

[](#congrapheav)

`congraph/eav` is the core content-model package in Congraph. It provides entity types, attribute sets, attributes, entities, and field handling.

Responsibilities
----------------

[](#responsibilities)

- entity type CRUD
- attribute and attribute-set CRUD
- entity CRUD
- field-type behavior
- localized and workflow-aware entity handling
- repository queries for structured content

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

[](#installation)

```
composer require congraph/eav
```

Laravel package provider:

- [EavServiceProvider.php](/Users/nikolap/git/np/congraph/packages/eav/EavServiceProvider.php)

Package relationships
---------------------

[](#package-relationships)

`eav` depends on:

- `core`
- `contracts`
- `filesystem`
- `locales`
- `workflows`

It is the package that ties most of the content-model pieces together.

Typical usage
-------------

[](#typical-usage)

Use `eav` to define:

- entity types such as articles, pages, products, or cases
- attribute sets for those content types
- field definitions and field behavior
- stored entities with localized and workflow-aware fields

Search and delivery
-------------------

[](#search-and-delivery)

`eav` is the canonical persistence layer.
When delivery/search is enabled through `entity-elastic`, this package still owns the source data model.

Development
-----------

[](#development)

### Install dependencies

[](#install-dependencies)

```
cd /Users/nikolap/git/np/congraph/packages/eav
composer update -W
```

### Run tests

[](#run-tests)

```
composer test
composer test:pgsql
```

The package has:

- integration tests
- field-type tests
- sample content-model tests

Contribution notes
------------------

[](#contribution-notes)

- prefer PostgreSQL-safe and SQLite-safe query behavior
- avoid MySQL-only raw SQL
- field-type changes should include tests in both field-level and integration contexts
- when changing entity status logic, re-test `entity-elastic`

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance85

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 66.7% 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 ~611 days

Recently: every ~284 days

Total

6

Last Release

79d ago

Major Versions

v1.1.0 → v2.0.02026-04-11

PHP version history (4 changes)v1.0betaPHP &gt;=5.4.0

v1.0.0PHP ^8.1.0

v1.1.0PHP ^8.2.0

v2.0.0PHP ^8.3 || ^8.4 || ^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3585404?v=4)[Nikola Plavšić](/maintainers/nikolaplavsic)[@nikolaplavsic](https://github.com/nikolaplavsic)

---

Top Contributors

[![nikolaplavsic](https://avatars.githubusercontent.com/u/3585404?v=4)](https://github.com/nikolaplavsic "nikolaplavsic (4 commits)")[![veljamatic](https://avatars.githubusercontent.com/u/1091355?v=4)](https://github.com/veljamatic "veljamatic (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-settings

Store your application settings

1.5k6.8M139](/packages/spatie-laravel-settings)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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