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 492

Dependents: 1

Suggesters: 0

Stars: 2

Open Issues: 0

2.0.184 2026-03-30 11:40 UTC

This package is auto-updated.

Last update: 2026-03-30 14:09:40 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(', ') }}