twentytwo-labs / api-service-feature-flag
Bundle to manage features flag
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/twentytwo-labs/api-service-feature-flag
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_IDis an api service id starting with- @
- COLLECTION_OPERATION_IDis operationId for get all features
- ITEM_OPERATION_IDis operationId for get one feature by IDENTIFIER
- IDENTIFIERis a field in HTTP response