Search by

jurager / eav

Jurager

Flexible Entity-Attribute-Value (EAV) system for Laravel with typed storage, localization, and attribute inheritance

Package info

github.com/Jurager/eav

pkg:composer/jurager/eav

Fund package maintenance!

Ko Fi

Statistics

Installs: 1 672

Dependents: 0

Suggesters: 1

Stars: 0

Open Issues: 0

1.0.1 2026-11-04 14:51 UTC

This package is auto-updated.

Last update: 2026-11-04 14:53:07 UTC


README

Latest Stable Version Total Downloads PHP Version Require License Ko-fi

Add typed, localized attributes to Eloquent models, with support for inheritance and select fields.

$product->eav()->set('color', 'blue')->save();

$product->eav()->value('color'); // 'blue'

Requirements

PHP >= 8.4 and Laravel 13.x

Installation

composer require jurager/eav

See installation and setup. The full documentation is also available online.

Testing

vendor/bin/phpunit

The suite runs on SQLite in memory. To run it on PostgreSQL, which has its own column types and indexes, point it at an empty database:

DB_CONNECTION=pgsql DB_HOST=127.0.0.1 DB_DATABASE=eav_test DB_USERNAME=postgres vendor/bin/phpunit

License

Open source, licensed under the MIT license.