Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Eav Api Platform Bundle Laravel Package

cleverage/eav-api-platform-bundle

View on GitHub
Deep Wiki
Context7

CleverAge/EAVApiPlatformBundle

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

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

Everything else is basic ApiPlatform implementation.

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:

<?php
        $projectBundles = [
            // ...
            new ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle(),
            new CleverAge\EAVApiPlatformBundle\CleverAgeEAVApiPlatformBundle(),
        ];

Filters

This bundle provides 6 different filters for you to use in resource class declaration in place of Doctrine's ApiPlatform's ones.

  • CleverAge\EAVApiPlatformBundle\Filter\BooleanFilter
  • CleverAge\EAVApiPlatformBundle\Filter\DateFilter
  • CleverAge\EAVApiPlatformBundle\Filter\NumericFilter
  • CleverAge\EAVApiPlatformBundle\Filter\OrderFilter
  • CleverAge\EAVApiPlatformBundle\Filter\RangeFilter
  • CleverAge\EAVApiPlatformBundle\Filter\SearchFilter
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui