A symfony bundle for Tessi Data Content. | Read-only mirror of https://github.com/republique-et-canton-de-geneve/php-symfony-data-content-bundle — République et canton de Genève. Issues & pull requests at the source.
  • PHP 98.9%
  • Shell 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-25 16:33:00 +02:00
.github ci(ci): upgrade php version to 8.4 in workflows and docs 2026-08-25 16:00:50 +02:00
.vscode DataContent Bundle 2026-03-30 16:16:38 +02:00
cmd Refactor rector commands to remove redundant 'src' argument and simplify test callbacks 2026-04-17 17:09:54 +02:00
config/packages feat(core): enhance exception handling and add tenant configuration 2026-08-25 10:52:33 +02:00
src refactor(service): improve configuration handling and mime type support 2026-08-25 15:57:24 +02:00
tests refactor(service): improve configuration handling and mime type support 2026-08-25 15:57:24 +02:00
.gitattributes feat(core): enhance exception handling and add tenant configuration 2026-08-25 10:52:33 +02:00
.gitignore feat(core): enhance exception handling and add tenant configuration 2026-08-25 10:52:33 +02:00
.php-cs-fixer.php DataContent Bundle 2026-03-30 16:16:38 +02:00
composer.json feat(core): enhance exception handling and add tenant configuration 2026-08-25 10:52:33 +02:00
coverage_branch.svg chore: GithubAction update code coverage results 2026-04-02 12:43:13 +00:00
coverage_line.svg chore: GithubAction update code coverage results 2026-04-02 12:43:13 +00:00
LICENSE DataContent Bundle 2026-03-30 16:16:38 +02:00
phpstan.neon DataContent Bundle 2026-03-30 16:16:38 +02:00
phpunit.xml feat(core): enhance exception handling and add tenant configuration 2026-08-25 10:52:33 +02:00
README.md ci(ci): upgrade php version to 8.4 in workflows and docs 2026-08-25 16:00:50 +02:00
rector.php feat(core): enhance exception handling and add tenant configuration 2026-08-25 10:52:33 +02:00
SECURITY.md DataContent Bundle 2026-03-30 16:16:38 +02:00

A Symfony bundle for GED tessi data content .

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
        # Tenant Id
  tenantId: admin
        # GED client Id
  clientId: clientId
        # Ged client secret
  clientSecret: '%env(DATA_CONTENT_CLIENT_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: '%env(DATA_CONTENT_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
tenantId Tenant 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

Quality and test code

Code coverage : coverage line coverage branche

phpunit php8.4 phpstan rector php-cs-fixer