{"id":43763852,"url":"https://github.com/abrouter/symfony-abtest","last_synced_at":"2026-02-05T15:34:58.899Z","repository":{"id":39860828,"uuid":"443662484","full_name":"abrouter/symfony-abtest","owner":"abrouter","description":"ABRouter Symfony AB test is a simple package for the base library to run ab-tests and feature flags via ABRouter with Laravel. Prepare and run your ab-test in 10 minutes. Easy to manage and run. Can be also used as a feature flag or feature toggle. Free cloud version available for free. Completely open-source.","archived":false,"fork":false,"pushed_at":"2022-06-17T10:17:03.000Z","size":24,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-01T21:35:09.821Z","etag":null,"topics":["a-b-testing","ab-testing-php","experiments","feature-flags","php","php-ab-testing","statistics","symfony","tracking-funnel"],"latest_commit_sha":null,"homepage":"https://abrouter.com","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/abrouter.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}},"created_at":"2022-01-02T02:05:33.000Z","updated_at":"2023-07-22T09:35:49.000Z","dependencies_parsed_at":"2022-08-30T14:40:25.281Z","dependency_job_id":null,"html_url":"https://github.com/abrouter/symfony-abtest","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/abrouter/symfony-abtest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrouter%2Fsymfony-abtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrouter%2Fsymfony-abtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrouter%2Fsymfony-abtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrouter%2Fsymfony-abtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abrouter","download_url":"https://codeload.github.com/abrouter/symfony-abtest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrouter%2Fsymfony-abtest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29124802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T14:05:12.718Z","status":"ssl_error","status_checked_at":"2026-02-05T14:03:53.078Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["a-b-testing","ab-testing-php","experiments","feature-flags","php","php-ab-testing","statistics","symfony","tracking-funnel"],"created_at":"2026-02-05T15:34:58.377Z","updated_at":"2026-02-05T15:34:58.891Z","avatar_url":"https://github.com/abrouter.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ABRouter Symfony A/B Tests | Split Tests\n\nABRouter AB Test :construction_worker_woman: is a simple package for base library to run A/B tests via [ABRouter](https://abrouter.com) with Symfony.\nYou can find base PHP library in https://github.com/abrouter/abrouter-php-client\n\n\nYou're welcome to [visit the docs](https://docs.abrouter.com/docs/intro/).\n\n# What is the ABRouter service ?\n\n[ABRouter](https://abrouter.com) is the service to manage experiments(A/B split tests). The service provides easy to manage dashboard to keep experiments under control.\nThere you can create experiments, branches and set a percentage for every branch. Then, when you're running an ab-test on PHP you will receive a perfect branch-wise response that following the rules, that you set up.\n\nCan be also used as a feature flag or feature toggle.\nAvailable for free.\n\n## Prepare your first A/B test\nBesides of the installing this package you need to have an account on [ABRouter](https://abrouter.com). Your token and experiment id will be also there.\n\n## :package: Install\nVia composer\n\n``` bash\n$ composer require abrouter/symfony-abtest\n```\n\n## Register the bundle\nRegister bundle\n\n```\n// config/bundles.php\nreturn [\n    // [...]\n    Abrouter\\SymfonyClient\\AbrouterClientBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\n### Configure ABRouter client:\n\nPut your ABRouter token in /config/packages/abrouter_client.yaml. You can find this token in [ABRouter dashboard](https://abrouter.com/en/board).\n\n```yaml\nabrouter_client:\n  token:                'YOUR_TOKEN'\n  host:                 'https://abrouter.com'\n```\n\n\n## :rocket: Usage\n\n```php\nuse Abrouter\\Client\\Client;\n\nclass ExampleController\n{\n    public function __invoke(Client $client)\n    {\n        $buttonColorExperimentId = 'D1D06000-0000-0000-00005030';\n        return new Response(json_encode([\n            'button_color' =\u003e $client\n                -\u003eexperiments()\n                -\u003erun('USER_ID', $buttonColorExperimentId),\n        ]));\n    }\n}\n```\n\nYou can create an experiment and get your token and id of experiment on [ABRouter](https://abrouter.com) or just read the [docs](https://abrouter.com/en/docs).\n\n\n## Example\nYou can get an dockerized usage example by the following link: (https://github.com/abrouter/symfony-abtest-example)\n\n## :wrench: Contributing\n\nPlease feel free to fork and sending Pull Requests. This project follows [Semantic Versioning 2](http://semver.org) and [PSR-2](http://www.php-fig.org/psr/psr-2/).\n\n## :page_facing_up: License\n\nGPL3. Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrouter%2Fsymfony-abtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabrouter%2Fsymfony-abtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrouter%2Fsymfony-abtest/lists"}