twentytwo-labs / api-service-feature-flag
Bundle to manage features flag
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >= 8.1
- symfony/options-resolver: ^5.4 || ^6.0 || ^7.0
- twentytwo-labs/api-service-bundle: *
- twentytwo-labs/feature-flag-bundle: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- infection/infection: ^0.29
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^10.0|^11.0
- squizlabs/php_codesniffer: ^3.10
- symfony/security-bundle: ^5.4|^6.0|^7.0
README
Using ApiServiceBundle to store Twentytwo Labs Feature Flags.
Configuration
# config/packages/twentytwo_labs_feature_flag.yaml
twentytwo_labs_feature_flag:
managers:
admin:
factory: twenty-two-labs.feature-flags.factory.api-service
options:
client: 'API_SERVICE_ID'
collection:
operationId: COLLECTION_OPERATION_ID
mapper: #optional
page: page #default
params:
accept: 'application/hal+json'
itemsPerPage: 30
item:
operationId: ITEM_OPERATION_ID
mapper:
identifier: IDENTIFIER
where:
API_SERVICE_ID
is an api service id starting with@
COLLECTION_OPERATION_ID
is operationId for get all featuresITEM_OPERATION_ID
is operationId for get one feature by IDENTIFIERIDENTIFIER
is a field in HTTP response