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

Ddd Apiplatform Bundle Laravel Package

alexandrebulete/ddd-apiplatform-bundle

View on GitHub
Deep Wiki
Context7

DDD API Platform Bundle

Symfony Bundle for the DDD API Platform Bridge. Provides service wiring and configuration for API Platform integration.

Installation

composer require alexandrebulete/ddd-apiplatform-bundle

Configuration

Add the bundle to your config/bundles.php:

return [
    // ...
    AlexandreBulete\DddApiPlatformBundle\DddApiPlatformBundle::class => ['all' => true],
];

Features

This bundle automatically registers services from ddd-apiplatform-bridge:

  • Paginator available for use in your State Providers

Usage

Create your own State Providers using the Paginator:

use AlexandreBulete\DddApiPlatformBridge\State\Paginator;
use ApiPlatform\Metadata\Operation;
use ApiPlatform\State\ProviderInterface;

class GetPostsProvider implements ProviderInterface
{
    public function __construct(
        private QueryBusInterface $queryBus,
    ) {}

    public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null
    {
        $posts = $this->queryBus->ask(new GetPostsQuery(/* ... */));
        
        // Return Paginator for pagination support
        return new Paginator(/* ... */);
    }
}
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.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle