{"id":30208471,"url":"https://github.com/dynamik-dev/tiny-flag","last_synced_at":"2025-08-13T17:27:46.942Z","repository":{"id":308229262,"uuid":"928961326","full_name":"dynamik-dev/tiny-flag","owner":"dynamik-dev","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-04T19:42:41.000Z","size":33,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-04T22:21:03.319Z","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/dynamik-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"DynamikDev"}},"created_at":"2025-02-07T14:59:08.000Z","updated_at":"2025-08-04T19:42:36.000Z","dependencies_parsed_at":"2025-08-04T22:26:36.060Z","dependency_job_id":"90a5d02f-5ae4-4929-91d1-eeb0f6c51d7b","html_url":"https://github.com/dynamik-dev/tiny-flag","commit_stats":null,"previous_names":["dynamik-dev/tiny-flag"],"tags_count":null,"template":false,"template_full_name":"spatie/package-skeleton-laravel","purl":"pkg:github/dynamik-dev/tiny-flag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamik-dev%2Ftiny-flag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamik-dev%2Ftiny-flag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamik-dev%2Ftiny-flag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamik-dev%2Ftiny-flag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dynamik-dev","download_url":"https://codeload.github.com/dynamik-dev/tiny-flag/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamik-dev%2Ftiny-flag/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270279176,"owners_count":24557304,"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-08-13T02:00:09.904Z","response_time":66,"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":"2025-08-13T17:27:44.548Z","updated_at":"2025-08-13T17:27:46.876Z","avatar_url":"https://github.com/dynamik-dev.png","language":"PHP","funding_links":["https://github.com/sponsors/DynamikDev"],"categories":[],"sub_categories":[],"readme":"\u003cdiv style=\"text-align: center;\"\u003e\n\u003ch1\u003eTinyFlag ⛳️\u003c/h1\u003e\n\u003ch2\u003eA dead- simple feature flagging package for Laravel.\u003c/h2\u003e\n\u003cimg style=\"margin-bottom: 20px;\" src=\"docs/tinyflag.png\" alt=\"TinyFlag\" width=\"400\"\u003e\n\u003c/div\u003e\n\nTinyFlag is a simple feature flagging package for Laravel. It allows you to easily manage feature flags in your application.\n\nYou do not need to manually declare flags, simply write a check in your code and the flag will be created for you with the given default value.\n\n```php\nif(flag('my-feature-flag', true)) {\n    // do something\n}\n```\n\nThis will create a feature flag with the name `my-feature-flag` and the default value `true`. You can now enable or disable the flag in the database.\n\n```php\nuse DynamikDev\\TinyFlag\\Facades\\TinyFlag;\n\nTinyFlag::enable('my-feature-flag');\nTinyFlag::disable('my-feature-flag');\n```\n\nOr, using the artisan command:\n\n```bash\nphp artisan flags:enable my-feature-flag\nphp artisan flags:disable my-feature-flag\n```\n\n## Installation\n\n```bash\ncomposer require dynamik-dev/tinyflag\n```\n\nAfter installing, you can publish and run the migrations with:\n\n```bash\nphp artisan vendor:publish --tag=\"tiny-flag-migrations\"\nphp artisan migrate\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"tiny-flag-config\"\n```\n\n## Default Flags\n\nTo add default flags, you can add them to the `flags` array in the config file.\n\n```php\n'flags' =\u003e [\n    'my-feature-flag' =\u003e true,\n]\n```\n\nThis will be the default state of the flag. If the flag is updated in the database, it will override the default value. However, if you reset all flags, the default value will be used again. See more in the [Configuration](docs/configuration.md) section.\n\n## Why not use Laravel Pennant?\n\nPennant is a great package, but for 90% of my usecases, I just needed a simple boolean check that I could easily manage in the database.\n\nUse Pennant if you need more complex feature flagging, such as per-user flags, or flagging based on a user's role or other attributes.\n\n### Documentation\n\n- [Configuration](docs/configuration.md)\n- [Artisan Commands](docs/artisan-commands.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamik-dev%2Ftiny-flag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdynamik-dev%2Ftiny-flag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamik-dev%2Ftiny-flag/lists"}