worksome/feature-flags
Composer 安装命令:
composer require worksome/feature-flags
包简介
A package to manage feature flags in your application
README 文档
README
A package to manage feature flags in your application. Currently supporting these providers:
Installation
You can install the package via composer:
composer require worksome/feature-flags
You can publish the config file with:
php artisan vendor:publish --tag="feature-flags-config"
See the config file for more information.
Creating Feature Flags
Feature flags should be registered using one or more enums containing your feature flags.
All feature flag enums must implement the Worksome\FeatureFlags\Contracts\FeatureFlagEnum contract.
For example, if you had a feature flag called flag-one, you could create an enum with the following:
namespace App\Enums; enum FeatureFlag: string implements \Worksome\FeatureFlags\Contracts\FeatureFlagEnum { case FlagOne = 'flag-one'; }
Usage in Blade
@feature(\App\Enums\FeatureFlag::FlagOne) This is content under a feature flag. @endfeature
Changelog
Please see the Releases for more information on what has changed recently.
Testing
We pride ourselves on a thorough test suite and strict static analysis. You can run all of our checks via a composer script:
composer test
To make it incredibly easy to contribute, we also provide a docker-compose file that will spin up a container with all the necessary dependencies installed. Assuming you have docker installed, just run:
docker-compose run --rm composer install # Only needed the first time docker-compose run --rm composer test # Run tests and static analysis
Support for XDebug is baked into the Docker image, you just need to configure the XDEBUG_MODE environment variable:
docker-compose run --rm -e XDEBUG_MODE=debug php
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
worksome/feature-flags 适用场景与选型建议
worksome/feature-flags 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 531.54k 次下载、GitHub Stars 达 11, 最近一次更新时间为 2021 年 12 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「feature-flags」 「worksome」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 worksome/feature-flags 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 worksome/feature-flags 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 worksome/feature-flags 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Lookup company information
Simple CV and Resume parsing for Laravel applications.
A driver-based translation package for Laravel
A package for handling numbers in Laravel
Telemetry support for Laravel
A driver-based package to handle IP geolocation for Laravel
统计信息
- 总下载量: 531.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-10