conduction/commongroundbundle
Symfony/API Platform bundle adding VNG Common Ground features for Dutch government apps: VNG API Standard support, BSN checks, KVK lookups, and resource lifecycle events (create/update/save/delete). Requires PHP 7.1+.
conduction_common_ground.yaml), minimizing invasive changes to existing code.composer require conduction/commongroundbundle
config/bundles.php:
Conduction\CommonGroundBundle\CommonGroundBundle::class => ['all' => true],
conduction_common_ground.yaml to config/packages/ and configure:
conduction_common_ground:
api_url: '%env(COMMONGROUND_API_URL)%' # Example: https://common-ground.test
client_id: '%env(COMMONGROUND_CLIENT_ID)%'
client_secret: '%env(COMMONGROUND_CLIENT_SECRET)%'
#[CommonGroundResource] attribute or implement CommonGroundInterface.commonground.resource.save) for custom logic:
// src/EventListener/CommonGroundListener.php
public static function getSubscribedEvents(): array
{
return [
CommonGroundEvents::RESOURCE_SAVE => 'onResourceSave',
];
}
Resource and StateProcessor systems.commonground.resource.created).conduction_common_ground.yaml.Symfony Cache for KVK lookups).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Common Ground API downtime | Broken citizen/business data access | Fallback to cached data or manual overrides. |
| Invalid BSN/KVK inputs | Data corruption or compliance risks | Strict validation + user feedback loops. |
| Bundle version incompatibility | API breaks | Pin to a specific version in composer.json. |
| Event listener errors | Silent failures or partial updates | Add error logging and alerts. |
| PHP/Symfony version conflicts | Deployment failures | Use Docker or PHP version managers. |
How can I help you explore Laravel packages today?