{"id":15150429,"url":"https://github.com/mablae/time-window-bundle","last_synced_at":"2026-02-21T21:34:02.001Z","repository":{"id":62521255,"uuid":"57379437","full_name":"mablae/time-window-bundle","owner":"mablae","description":"A symfony feature flag bundle for time based feature flags","archived":false,"fork":false,"pushed_at":"2016-05-27T01:55:25.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T01:31:58.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mablae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-29T11:27:52.000Z","updated_at":"2016-04-29T11:30:40.000Z","dependencies_parsed_at":"2022-11-02T10:45:35.066Z","dependency_job_id":null,"html_url":"https://github.com/mablae/time-window-bundle","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/mablae/time-window-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mablae%2Ftime-window-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mablae%2Ftime-window-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mablae%2Ftime-window-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mablae%2Ftime-window-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mablae","download_url":"https://codeload.github.com/mablae/time-window-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mablae%2Ftime-window-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281047793,"owners_count":26435124,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-09-26T14:04:02.858Z","updated_at":"2025-10-26T01:32:17.278Z","avatar_url":"https://github.com/mablae.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TimeWindowBundle\n\nThis bundle implements implements basically daytime based feature flags. \n\n**NOTICE** This bundle is the result of quickly decoupling some logic we already had duplicated in serveral places\nof an legacy codebase. If you are looking for a *full featured* Feature Toggle Bundle for Symfony you are probably better using\nhttps://github.com/qandidate-labs/qandidate-toggle-bundle\n\nFeel free to contribute or leave feedback in the issues. \u003c3\n\n##Installation\n\n### Step 1: Install DatetimepickerBundle\n\n```bash\nphp composer.phar require mablae/datetimepicker-bundle\n```\n\n### Step 2: Enable the bundle\n\n``` php\n\u003c?php\n// app/AppKernel.php\n\npublic function registerBundles()\n{\n    $bundles = array(\n        // ...\n        new Mablae\\TimeWindowBundle\\MablaeTimeWindowBundle(),\n    );\n}\n```\n\n\n### Step 3: Configure your named time windows:\n``` yml\n# app/config/config.yml\nmablae_time_window_:\n    enabled: ~\n    time_windows:\n      in_the_morning:\n        - { startTime : '06:00' , endTime: '08:00' }\n```\n\nAt the moment there is no proper overlapping checks or sorting. The timewindow must be defined in correct order. \nThe first timewindow that returns active wins.\n\n### Step 4: Use the voter service to ask, if a time-window is active\n``` php\n\n\u003c?php \n/* ... */ \n\n$timeWindowService = $this-\u003eget('mablae_time_window.service');\n\n$itsInTheMorning = $timeWindowService-\u003eisTimeWindowActive('in_the_morning')\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmablae%2Ftime-window-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmablae%2Ftime-window-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmablae%2Ftime-window-bundle/lists"}