theod02/api-platform-filter-map-query-string

一个Bundle,用于帮助在API Platform中声明自定义DTO Filter,并像MapQueryString一样解析它

dev-main 2024-06-27 21:48 UTC

This package is auto-updated.

Last update: 2024-09-27 22:21:39 UTC


README

安装

确保已经全局安装了Composer,如Composer文档的安装章节所述。

使用Symfony Flex的应用程序

打开命令行控制台,进入您的项目目录并执行

$ composer require theod02/api-platform-filter-map-query-string

不使用Symfony Flex的应用程序

步骤 1: 下载Bundle

打开命令行控制台,进入您的项目目录并执行以下命令以下载此Bundle的最新稳定版本

$ composer require theod02/api-platform-filter-map-query-string

步骤 2: 启用Bundle

然后,通过将其添加到项目config/bundles.php文件中已注册的Bundle列表来启用该Bundle

// config/bundles.php

return [
    // ...
    Theod02\ApiPlatformFilterMapQueryString\ApiPlatformFilterMapQueryString::class => ['all' => true],
];