survos/inspection-bundle
最新稳定版本:2.2.2
Composer 安装命令:
composer require survos/inspection-bundle
包简介
Inspects Doctrine entities with APIPlatform attributes
README 文档
README
Inspection helpers for API Platform resources:
- discover collection routes (
api_route) - derive searchable and sortable fields (
searchable_fields,sortable_fields) - build default column metadata (
api_columns)
Install
composer require survos/inspection-bundle
Routes
This bundle no longer ships a Symfony installer recipe. Import routes manually when needed:
# config/routes/survos_inspection.yaml survos_inspection: resource: '@SurvosInspectionBundle/config/routes.yaml' prefix: '/inspection'
Twig Helpers
{% set class = 'App\\Entity\\Asset' %}
{{ api_route(class) }}
{{ searchable_fields(class)|join(', ') }}
{{ sortable_fields(class)|join(', ') }}
统计信息
- 总下载量: 6.56k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-25