msgphp/eav-bundle

Basic entity-attribute-value management (the `EAV` domain)

Maintainers

Details

github.com/msgphp/eav-bundle

Source

Installs: 2 371

Dependents: 2

Suggesters: 1

Stars: 8

Watchers: 3

Forks: 1

Type:symfony-bundle

v0.8.0 2018-11-10 07:42 UTC

README

A Symfony bundle for basic EAV management.

Latest Stable Version

This package is part of the Message driven PHP project.

MsgPHP is a project that aims to provide (common) message based domain layers for your application. It has a low development time overhead and avoids being overly opinionated.

Installation

composer require msgphp/eav-bundle

Configuration

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

use MsgPhp\Eav\Entity\{Attribute, AttributeValue};
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

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

And be done.

Documentation

Contributing

This repository is READ ONLY. Issues and pull requests should be submitted in the main development repository.