gdbots / iam
Php library that provides implementations for gdbots:iam schemas.
Installs: 13 061
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
- gdbots/ncr: ^3.0
Requires (Dev)
- gdbots/acme-schemas: ^3.0
- phpunit/phpunit: ^9.5
README
Php library that provides implementations for gdbots:iam 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:iam:mixin:*" mixins from gdbots/schemas.
Symfony Integration
Enabling these services in a Symfony app is done by importing classes and letting Symfony autoconfigure and autowire them.
config/packages/iam.yml:
services: _defaults: autowire: true autoconfigure: true public: false Gdbots\Iam\: resource: '%kernel.project_dir%/vendor/gdbots/iam/src/**/*' exclude: '*Aggregate*' Gdbots\Iam\NcrAppProjector: arguments: $enabled: '%env(bool:NCR_PROJECTOR_ENABLED)%' Gdbots\Iam\NcrUserProjector: arguments: $enabled: '%env(bool:NCR_PROJECTOR_ENABLED)%'
The above services do NOT handle security though, to get that we need deeper integration with Symfony which is provided by the gdbots/iam-bundle-php.