it-bens/deqar-api-client-bundle

通过Symfony服务提供deqar-api-client包的Bundle。

安装: 3

依赖: 0

建议者: 0

安全性: 0

星标: 0

关注者: 1

分支: 0

开放问题: 1

类型:symfony-bundle

v0.1.0 2021-11-09 08:13 UTC

This package is auto-updated.

Last update: 2024-09-15 10:45:48 UTC


README

Maintenance Status CI Status codecov

如何安装此Bundle?

此包可以通过Composer安装。

composer require it-bens/it-bens/deqar-api-client-bundle

如果你使用Symfony Flex,则Bundle将被自动启用。对于旧应用程序,请在Kernel类中启用它。

如何使用DEQAR API客户端Bundle?

使用此Bundle,已配置了SubmissionApiClientInterfaceWebApiClientInterface的实现以进行自动绑定。这两个客户端都必须通过symfony配置进行配置

itb_deqar_api_client:
  web_api_client:
    deqar_username: '%env(string:DEQAR_API_USERNAME)%'
    deqar_password: '%env(string:DEQAR_API_PASSWORD)%'
    cache: 'itb_deqar_api_client.test_cache'
  submission_api_client:
    deqar_username: '%env(string:DEQAR_API_USERNAME)%'
    deqar_password: '%env(string:DEQAR_API_PASSWORD)%'
    test: true

WebApiClient可以在没有SubmissionApi客户端的情况下使用,但没有WebApi客户端就无法使用SubmissionApi客户端。后者需要WebApi访问来检查提供的机构、活动和机构。

如果没有提供cache键,则将使用未缓存的WebApi客户端(也适用于SubmissionApi客户端)。缓存的WebApi客户端需要一个有效且已注册的缓存池,并提供其ID。

客户端的使用说明见此处:GitHub - DEQAR API Client(s).

贡献

我非常高兴看到软件开发社区像我喜欢一样喜欢开源!♥

因此,我感谢每个提出的问题(最好是建设性的)和每个提供其他或更好代码的pull request。

你们都是惊人的!

特别感谢

此项目由欧洲质量保证注册(EQAR)和欧盟资助,我非常感谢!