survos/inspection-bundle

Inspects Doctrine entities with APIPlatform attributes

Maintainers

Package info

github.com/survos/inspection-bundle

Type:symfony-bundle

pkg:composer/survos/inspection-bundle

Fund package maintenance!

kbond

Statistics

Installs: 6 527

Dependents: 1

Suggesters: 0

Stars: 2

Open Issues: 0

2.0.194 2026-04-03 17:01 UTC

This package is auto-updated.

Last update: 2026-04-04 12:16:45 UTC


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(', ') }}