feat: refactor from Bucket to Reflag - #92
Merged
Merged
Conversation
BREAKING CHANGE: The naming of configuration and classes change from `Bucket` naming to `Reflag`.
owenvoke
force-pushed
the
feature/bucket-reflag
branch
from
September 2, 2025 15:37
8c3623e to
7fff8f0
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the codebase from "Bucket" naming to "Reflag" naming as part of a breaking change. This appears to be a complete provider rename, likely due to a service rebranding or migration.
Key changes:
- Renamed all Bucket-related classes to Reflag equivalents (BucketProvider → ReflagProvider, BucketClient → ReflagClient, etc.)
- Updated configuration keys and environment variable names from BUCKET_* to REFLAG_*
- Changed the default base URI from bucket.co to reflag.com
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/Providers/Reflag/ReflagProvider.php | Renamed class and updated all internal references from Bucket to Reflag |
| src/Providers/Reflag/ReflagContext.php | Renamed BucketContext class to ReflagContext |
| src/Providers/Reflag/ReflagClient.php | Renamed BucketClient to ReflagClient, updated API endpoint and error messages |
| src/FeatureFlagsManager.php | Updated manager to use Reflag driver and configuration |
| src/Exceptions/Reflag/ReflagInvalidResponseException.php | Created new Reflag-specific exception class |
| src/Exceptions/Bucket/BucketInvalidResponseException.php | Removed old Bucket exception class |
| config/feature-flags.php | Updated configuration keys and environment variables |
| README.md | Updated documentation to reference Reflag instead of LaunchDarkly duplicate |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
odinns
approved these changes
Sep 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE: The naming of configuration and classes change from
Bucketnaming toReflag.Public announcement for this will be coming 4th September. 👍🏻