twentytwo-labs / api-service-feature-flag
Bundle to manage features flag
Package info
github.com/TwentytwoLabs/api-service-feature-flag
Type:symfony-bundle
pkg:composer/twentytwo-labs/api-service-feature-flag
1.0.2
2026-09-01 19:38 UTC
Requires
- php: >= 8.3
- symfony/options-resolver: ^6.0|^7.0|^8.0
- twentytwo-labs/api-service-bundle: *
- twentytwo-labs/feature-flag-bundle: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- infection/infection: ^0.29|^0.35
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^12.0|^13.0
- squizlabs/php_codesniffer: ^3.13
- symfony/security-bundle: ^6.0|^7.0|^8.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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_IDis an api service id starting with@COLLECTION_OPERATION_IDis operationId for get all featuresITEM_OPERATION_IDis operationId for get one feature by IDENTIFIERIDENTIFIERis a field in HTTP response