republique-et-canton-de-geneve / php-data-content-bundle
Symfony bundle for GED tessi data content.
Package info
github.com/republique-et-canton-de-geneve/php-symfony-data-content-bundle
Type:symfony-bundle
pkg:composer/republique-et-canton-de-geneve/php-data-content-bundle
Requires
- php: >=7.4 <8.5
- symfony/cache: ^5.4
- symfony/config: ^5.4
- symfony/dependency-injection: ^5.4
- symfony/http-client: ^5.4
- symfony/http-kernel: ^5.4
- symfony/mime: ^5.4
- symfony/security-bundle: ^5.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.49
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1
- phpunit/php-code-coverage: *
- phpunit/phpunit: ^9.6
- rector/rector: ^2.3
This package is not auto-updated.
Last update: 2026-04-03 13:01:55 UTC
README
A Symfony bundle to easily send headers in your HTTP response
For Symfony 5.4
Usage
You define one or more headers response in your yaml configuration, for exemple:
---
#config/packages/datacontent.yml
data_content:
checkSSL: true
# Name of application
applicationId: myAppli
# GED client Id
clientId: clientId
# Ged client secret
clientSecret: 'secret'
# URL for GED REST request
restUrl: 'http://ged.localhost'
# Base ID
baseId: baseId
# Timeout for DataContent in seconds
timeout: 20
# service for token authentication
tokenAuthenticatorClass: ~
# Username account for get a token
username: 'User'
# Password for get a token
password: 'password'
# Audience for token request
audience: audience
# URL for get a token
tokenAuthSsoUrl: http://sso.localhost
# Timeout for token in seconds
tokenTimeout: 15
...
| parameter | definition |
|---|---|
| checkSSL | (bool) check the ssl |
| applicationId | Application name Id |
| clientId | GED client Id |
| clientSecret | Ged client secret |
| restUrl | URL for GED REST request |
| baseId | Base ID |
| timeout | Timeout for DataContent in seconds |
When using the default service for token authentification
| parameter | definition |
|---|---|
| username | Username account for get a token |
| password | Password for get a token |
| audience | Audience for token request |
| tokenAuthSsoUrl | URL for get a token |
| tokenTimeout | Timeout for token in seconds |
If you want to use your own authentication service instead of the standard one
| parameter | definition |
|---|---|
| tokenAuthenticatorClass | service id for token authentication |
Your service implement class EtatGeneve\DataContentBundle\Service\InterfaceTokenAuthenticator
Installation
The bundle should be automatically enabled by Symfony Flex. If you don't use Flex, you'll need to enable it manually as explained in the docs.
composer config extra.symfony.allow-contrib true
composer require republique-et-canton-de-geneve/php-symfony-data-content-bundle
License Released under the Apache-2.0 license