eav-bundle icon indicating copy to clipboard operation
eav-bundle copied to clipboard

A Symfony bundle for basic EAV management

NOT ACTIVELY SUPPORTED ANY MORE!!

msgphp/* repositories are not actively developed/supported anymore.

Use in production on your own risks.

If you want to do some hotfixes - please do PR directly in target repository instead of previous msgphp/msgphp monorepository

Entity-Attribute-Value Bundle

A Symfony bundle for basic EAV management.

Latest Stable Version

Installation

composer require msgphp/eav-bundle

Configuration

<?php
// config/packages/msgphp_eav.php

use MsgPhp\Eav\Attribute;
use MsgPhp\Eav\AttributeValue;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return function (ContainerConfigurator $container) {
    $container->extension('msgphp_eav', [
        'class_mapping' => [
            Attribute::class => \App\Entity\Attribute::class,
            AttributeValue::class => \App\Entity\AttributeValue::class,
        ],
    ]);
};

Documentation

Contributing