survos / inspection-bundle
This package is abandoned and no longer maintained.
The author suggests using the survos/field-bundle package instead.
Inspects Doctrine entities with APIPlatform attributes
Package info
github.com/survos/inspection-bundle
Type:symfony-bundle
pkg:composer/survos/inspection-bundle
Fund package maintenance!
2.7.6
2026-05-29 11:05 UTC
Requires
- php: ^8.4
- api-platform/core: ^4.2 || ^5.0
- survos/core-bundle: ^2.5
- symfony/config: ^8.0
- symfony/dependency-injection: ^8.0
- symfony/framework-bundle: ^8.0
- symfony/http-kernel: ^8.0
- symfony/string: ^8.0
- twig/twig: ^3.4
Requires (Dev)
- devizzent/cebe-php-openapi: ^1.1
- phpstan/phpstan: ^2.0
- roave/security-advisories: dev-latest
- symfony/routing: ^8.0
Suggests
- devizzent/cebe-php-openapi: For reading open api specs
This package is auto-updated.
Last update: 2026-06-03 00:56:52 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(', ') }}