acrnogor / audit-api-bundle
Symfony bundle providing an API interface for damienharper/auditor-bundle audits.
Package info
github.com/acrnogor/audit-api-bundle
Type:symfony-bundle
pkg:composer/acrnogor/audit-api-bundle
Requires
- php: >=8.4
- damienharper/auditor-bundle: ^6.3 || ^7.0
- doctrine/dbal: ^3.6 || ^4.0
- symfony/config: ^6.4 || ^7.0
- symfony/console: ^6.4 || ^7.0 || ^8.0
- symfony/dependency-injection: ^6.4 || ^7.0
- symfony/framework-bundle: ^6.4 || ^7.0
- symfony/http-foundation: ^6.4 || ^7.0
- symfony/http-kernel: ^6.4 || ^7.0
- symfony/property-access: ^6.4 || ^7.0
- symfony/routing: ^6.4 || ^7.0
- symfony/serializer: ^6.4 || ^7.0
Requires (Dev)
- phpunit/phpunit: ^11.0
- symfony/browser-kit: ^6.4 || ^7.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-12 14:10:56 UTC
README
Symfony bundle providing an API interface for damienharper's audit bundle.
Requirements
- PHP 8.4+
- Symfony 6.4 or 7.x
Installation
composer require acrnogor/audit-api-bundle
With Symfony Flex, the bundle's recipe (a contrib recipe, so Flex asks you to confirm it) registers the bundle and creates the two files below.
Without Flex, enable the bundle in config/bundles.php and create those files
yourself:
return [ // ... Acrnogor\AuditApiBundle\AcrnogorAuditApiBundle::class => ['all' => true], ];
Configuration
# config/packages/acrnogor_audit_api.yaml acrnogor_audit_api: enabled: true
Routes
# config/routes/acrnogor_audit_api.yaml acrnogor_audit_api: resource: '@AcrnogorAuditApiBundle/src/Controller/' type: attribute prefix: /audit
Flex adds this file automatically; without Flex, create it manually.
| Method | Path | Response |
|---|---|---|
| GET | /audit/audits/{shortName}/{id} |
Audit entries for the entity, newest first |
Flex recipe
The Flex recipe lives in recipe/ and is mirrored to
symfony/recipes-contrib under
acrnogor/audit-api-bundle/<version>/. Flex only reads recipes from recipe
repositories, so any change here has to be submitted there to take effect.
Testing
composer install vendor/bin/phpunit
License
MIT — see LICENSE.