{"id":22226208,"url":"https://github.com/worksome/feature-flags","last_synced_at":"2025-07-11T16:37:06.747Z","repository":{"id":38192898,"uuid":"435495433","full_name":"worksome/feature-flags","owner":"worksome","description":"A package to manage feature flags in your application.","archived":false,"fork":false,"pushed_at":"2025-03-13T09:45:18.000Z","size":181,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-06-05T17:04:45.392Z","etag":null,"topics":["feature-flags","laravel","launchdarkly"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/worksome.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"worksome"}},"created_at":"2021-12-06T12:52:01.000Z","updated_at":"2025-03-13T09:44:32.000Z","dependencies_parsed_at":"2025-03-12T13:29:14.777Z","dependency_job_id":"d92a5ee4-355e-475b-a442-ece8651b3439","html_url":"https://github.com/worksome/feature-flags","commit_stats":{"total_commits":96,"total_committers":10,"mean_commits":9.6,"dds":0.65625,"last_synced_commit":"66716078f28e56a192151f3ee4434a3c08c830d9"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":"worksome/package-skeleton-laravel","purl":"pkg:github/worksome/feature-flags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksome%2Ffeature-flags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksome%2Ffeature-flags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksome%2Ffeature-flags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksome%2Ffeature-flags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/worksome","download_url":"https://codeload.github.com/worksome/feature-flags/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksome%2Ffeature-flags/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263968359,"owners_count":23537226,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["feature-flags","laravel","launchdarkly"],"created_at":"2024-12-03T00:24:02.908Z","updated_at":"2025-07-11T16:37:06.735Z","avatar_url":"https://github.com/worksome.png","language":"PHP","funding_links":["https://github.com/sponsors/worksome"],"categories":[],"sub_categories":[],"readme":"# Feature Flags\n\n[![PHPStan](https://github.com/worksome/feature-flags/actions/workflows/phpstan.yml/badge.svg)](https://github.com/worksome/feature-flags/actions/workflows/phpstan.yml)\n[![Run Tests](https://github.com/worksome/feature-flags/actions/workflows/run-tests.yml/badge.svg)](https://github.com/worksome/feature-flags/actions/workflows/run-tests.yml)\n\nA package to manage feature flags in your application. Currently supporting these providers:\n\n- [LaunchDarkly](https://launchdarkly.com/)\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require worksome/feature-flags\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"feature-flags-config\"\n```\n\nSee the [config file](config/feature-flags.php) for more information.\n\n### Creating Feature Flags\n\nFeature flags should be registered using one or more enums containing your feature flags.\n\nAll feature flag enums must implement the `Worksome\\FeatureFlags\\Contracts\\FeatureFlagEnum` contract.\n\nFor example, if you had a feature flag called `flag-one`, you could create an enum with the following:\n\n```php\nnamespace App\\Enums;\n\nenum FeatureFlag: string implements \\Worksome\\FeatureFlags\\Contracts\\FeatureFlagEnum\n{\n    case FlagOne = 'flag-one';\n}\n```\n\n## Usage in Blade\n\n```php\n@feature(\\App\\Enums\\FeatureFlag::FlagOne)\n    This is content under a feature flag.\n@endfeature\n```\n\n## Changelog\n\nPlease see the [Releases](https://github.com/worksome/feature-flags/releases) for more information on what has changed recently.\n\n## Testing\n\nWe pride ourselves on a thorough test suite and strict static analysis. You can run all of our checks via a composer script:\n\n```bash\ncomposer test\n```\n\nTo make it incredibly easy to contribute, we also provide a docker-compose file that will spin up a container\nwith all the necessary dependencies installed. Assuming you have docker installed, just run:\n\n```bash\ndocker-compose run --rm composer install # Only needed the first time\ndocker-compose run --rm composer test # Run tests and static analysis \n```\n\nSupport for XDebug is baked into the Docker image, you just need to configure the `XDEBUG_MODE` environment variable:\n\n```bash\ndocker-compose run --rm -e XDEBUG_MODE=debug php\n```\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Lukas Juhas](https://github.com/lukasjuhas)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworksome%2Ffeature-flags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworksome%2Ffeature-flags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworksome%2Ffeature-flags/lists"}