{"id":18576148,"url":"https://github.com/thiagodp/phputil-flags-pdo","last_synced_at":"2026-02-04T08:07:31.492Z","repository":{"id":239373174,"uuid":"797908413","full_name":"thiagodp/phputil-flags-pdo","owner":"thiagodp","description":"PDO-based storage for the phputil/flags framework","archived":false,"fork":false,"pushed_at":"2024-11-09T21:34:02.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T15:36:02.369Z","etag":null,"topics":["feature","flag","framework","library","pdo","php","storage","toggle"],"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/thiagodp.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-05-08T18:06:32.000Z","updated_at":"2024-11-09T21:34:04.000Z","dependencies_parsed_at":"2024-05-11T22:47:36.876Z","dependency_job_id":"d6586915-1039-4555-8f51-e1f9a8323632","html_url":"https://github.com/thiagodp/phputil-flags-pdo","commit_stats":null,"previous_names":["thiagodp/phputil-flags-pdo"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodp%2Fphputil-flags-pdo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodp%2Fphputil-flags-pdo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodp%2Fphputil-flags-pdo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagodp%2Fphputil-flags-pdo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiagodp","download_url":"https://codeload.github.com/thiagodp/phputil-flags-pdo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251686736,"owners_count":21627474,"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","flag","framework","library","pdo","php","storage","toggle"],"created_at":"2024-11-06T23:23:47.747Z","updated_at":"2026-02-04T08:07:26.445Z","avatar_url":"https://github.com/thiagodp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phputil/flags-pdo\n\n[![Version](https://poser.pugx.org/phputil/flags-pdo/v?style=flat-square)](https://packagist.org/packages/phputil/flags-pdo)\n![Build](https://github.com/thiagodp/phputil-flags-pdo/actions/workflows/ci.yml/badge.svg?style=flat)\n[![License](https://poser.pugx.org/phputil/flags-pdo/license?style=flat-square)](https://packagist.org/packages/phputil/flags-pdo)\n[![PHP](http://poser.pugx.org/phputil/flags-pdo/require/php)](https://packagist.org/packages/phputil/flags-pdo)\n\n\u003e A PDO-based storage for the [phputil/flags](https://github.com/thiagodp/phputil-flags) feature flags framework\n\nCurrently supported drivers:\n- sqlite\n- mysql\n\n## Installation\n\n\u003e Requires PHP 7.4+ and extension `pdo`\n\n```bash\ncomposer require phputil/flags-pdo\n```\n\n⚠ Note: You may need to enable the PDO extension you want to use.\n\nFor instance, if you want to use `sqlite`:\n1. Find your `php.ini` file:\n\n`php --ini`\n\n2. Open your `php.ini` and uncomment (or add) the following line:\n\n`extension=pdo_sqlite`\n\n## Usage\n\n```php\nrequire_once 'vendor/autoload.php';\n\nuse phputil\\flags\\pdo\\PDOBasedStorage;\n\n$pdo = /* create you PDO instance here, e.g.: new PDO( 'sqlite:example.sqlite' ) */;\n$storage = new PDOBasedStorage( $pdo );\n\n// Now use it with phputil\\flags\n$flags = new phputil\\flags\\FlagManager( $storage );\n...\n```\n\n## License\n\n[MIT](/LICENSE) © [Thiago Delgado Pinto](https://github.com/thiagodp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagodp%2Fphputil-flags-pdo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiagodp%2Fphputil-flags-pdo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagodp%2Fphputil-flags-pdo/lists"}