PHPackages                             cleverage/eav-api-platform-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. cleverage/eav-api-platform-bundle

ActiveSymfony-bundle[API Development](/categories/api)

cleverage/eav-api-platform-bundle
=================================

Dedicated bundle for Sidus/EAVModelBundle dependencies for ApiPlatform

02.3kPHPCI failing

Since Mar 10Pushed 6y ago3 watchersCompare

[ Source](https://github.com/cleverage/eav-api-platform-bundle)[ Packagist](https://packagist.org/packages/cleverage/eav-api-platform-bundle)[ RSS](/packages/cleverage-eav-api-platform-bundle/feed)WikiDiscussions v1.0-dev Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

CleverAge/EAVApiPlatformBundle
==============================

[](#cleverageeavapiplatformbundle)

This bundle provides basic support for Sidus/EAVModelBundle with ApiPlatform.

When declaring any family as a resource for the Api, you need to declare a specific class for this family:

[SidusEAVModelBundle/Documentation/12-custom\_classes.html](https://vincentchalnot.github.io/SidusEAVModelBundle/Documentation/12-custom_classes.html)

And for Hydra documenation to work you need to annotate your final classes with the `@Family` annotation.

Everything else is basic ApiPlatform implementation.

### Installation

[](#installation)

Require Api Platform in your composer.json (with the version you need) as well as the EAV compatibility bundle if you need to expose EAV data:

```
{
    # ...
    "require": {
        # ...
        "api-platform/api-platform": "2.1.*",
        "cleverage/eav-api-platform-bundle": "1.0.*"
    }
}
```

Add the bundles to your kernel:

```
