congraph / eav
There is no license information available for the latest version (v2.0.3) of this package.
v2.0.3
2026-04-12 09:41 UTC
Requires
- php: ^8.3 || ^8.4 || ^8.5
- congraph/contracts: ^2.0 || dev-main || dev-master
- congraph/core: ^2.0 || dev-main || dev-master
- congraph/filesystem: ^2.0 || dev-main || dev-master
- congraph/locales: ^2.0 || dev-main || dev-master
- congraph/workflows: ^2.0 || dev-main || dev-master
- illuminate/database: ^13.0
Requires (Dev)
- orchestra/testbench: 11.x-dev
- phpunit/phpunit: ^12.0
This package is auto-updated.
Last update: 2026-04-12 09:46:41 UTC
README
congraph/eav is the core content-model package in Congraph. It provides entity types, attribute sets, attributes, entities, and field handling.
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
composer require congraph/eav
Laravel package provider:
Package relationships
eav depends on:
corecontractsfilesystemlocalesworkflows
It is the package that ties most of the content-model pieces together.
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
eav is the canonical persistence layer.
When delivery/search is enabled through entity-elastic, this package still owns the source data model.
Development
Install dependencies
cd /Users/nikolap/git/np/congraph/packages/eav
composer update -W
Run tests
composer test
composer test:pgsql
The package has:
- integration tests
- field-type tests
- sample content-model tests
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