gdbots / enrichments
Php library that provides implementations for gdbots:enrichments schemas.
Installs: 12 655
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
- gdbots/pbjx: ^4.0
- ua-parser/uap-php: ^3.9
Requires (Dev)
- phpunit/phpunit: ^9.5
README
Php library that provides implementations for gdbots:enrichments schemas. Using this library assumes that you've already created and compiled your own pbj classes using the Pbjc and are making use of the "gdbots:enrichments:mixin:*" mixins from gdbots/schemas.
Symfony Integration
Enabling these enrichments in a Symfony app is done by importing classes and letting Symfony autoconfigure and autowire them.
config/packages/enrichments.yml:
services: _defaults: autowire: true autoconfigure: true public: false Gdbots\Enrichments\: resource: '%kernel.project_dir%/vendor/gdbots/enrichments/src/*' tags: - {name: monolog.logger, channel: enrichments} bind: Psr\Log\LoggerInterface: '@monolog.logger.enrichments'
TODO
- Create the ip-to-geo enricher with pluggable providers (ip2location, maxmind)