alexandrebulete/ddd-apiplatform-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alexandrebulete/ddd-apiplatform-bundle

最新稳定版本:1.0.1

Composer 安装命令:

composer require alexandrebulete/ddd-apiplatform-bundle

包简介

Symfony Bundle for DDD API Platform Bridge - Service wiring and configuration

README 文档

README

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(/* ... */);
    }
}

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固