New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

jurager/eav

Flexible Entity-Attribute-Value (EAV) system for Laravel with typed storage, localization, and attribute inheritance
1,848
Install
composer require jurager/eav
Latest Version:1.0.13
PHP:^8.4
Laravel:13
License:MIT
Last Updated:Nov 19, 2026
Links: GitHub  ·  Packagist
Maintainer: Jurager

Jurager/Eav

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.

Related Packages

laravelista/loki

Laravel localization done right.

16,732 78
netstudio/loki

Laravel localization done right.

5,723 0
sunel/eav

Eav For Artisan.

3,696 153
cloud-dev-studio/eav-library-laravel

EAV Library Implementation for Laravel

27 4
mcamara/laravel-localization

Easy localization for Laravel

10,814,069 3,559

Version History

Version Released PHP Laravel License
1.0.13 ^8.4 ^13.0 MIT
1.0.12 ^8.4 ^13.0 MIT
1.0.11 ^8.4 ^13.0 MIT
1.0.10 ^8.4 ^13.0 MIT
1.0.9 ^8.4 ^13.0 MIT