dbp / relay-verity-connector-clamav-bundle
A connector bundle for the Relay API gateway
Package info
github.com/digital-blueprint/relay-verity-connector-clamav-bundle
Type:symfony-bundle
pkg:composer/dbp/relay-verity-connector-clamav-bundle
Requires
- php: >=8.2
- ext-json: *
- dbp/relay-core-bundle: ^0.1.209
- dbp/relay-verity-bundle: ^0.2.0
- psr/log: ^1.1.4 || ^2.0 || ^3.0
- symfony/config: ^7.4
- symfony/console: ^7.4
- symfony/dependency-injection: ^7.4
- symfony/framework-bundle: ^7.4
- symfony/http-client: ^7.4
- symfony/http-client-contracts: ^3.5
- symfony/http-foundation: ^7.4
- symfony/http-kernel: ^7.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.50
- phpstan/phpstan: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^11.0
- symfony/browser-kit: ^7.4
- symfony/monolog-bundle: ^3.10 || ^4.0
- symfony/phpunit-bridge: ^7.0.4
- symfony/runtime: ^7.4
README
The verity connector clamav bundle provides an internal API for interacting with a (remote) ClamAV service.
Bundle installation
You can install the bundle directly from packagist.org.
composer require dbp/relay-verity-connector-clamav-bundle
Configuration
For this create config/packages/dbp_relay_verity_connector_clamav.yaml in the app with the following
content:
dbp_relay_verity_connector_clamav: host: '%env(CLAMAV_HOST)%' max_file_size: 32M
If you were using the DBP API Server Template as template for your Symfony application, then the configuration file should have already been generated for you.
For more info on bundle configuration see https://symfony.com/doc/current/bundles/configuration.html.
Development & Testing
- Install dependencies:
composer install - Run tests:
composer test - Run linters:
composer run lint - Run cs-fixer:
composer run cs-fix