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

ActiveLibrary

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

v2.0.3(1mo ago)01681PHPPHP ^8.3 || ^8.4 || ^8.5

Since Nov 29Pushed 1mo ago2 watchersCompare

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

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

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

55

—

FairBetter than 98% of packages

Maintenance94

Actively maintained with recent releases

Popularity13

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

32d 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://www.gravatar.com/avatar/abed9bab73157b9b9d1f4a8f0ca61e49020d7fa643223364f2067586e759f8d9?d=identicon)[nikolaplavsic](/maintainers/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

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[casbin/laravel-authz

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.

324339.9k4](/packages/casbin-laravel-authz)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[illuminatech/balance

Provides support for Balance accounting system based on debit and credit principle

16137.4k](/packages/illuminatech-balance)[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)
