{"id":24669095,"url":"https://github.com/solution10/circuitbreaker","last_synced_at":"2026-05-18T01:04:15.412Z","repository":{"id":57055385,"uuid":"58833815","full_name":"solution10/circuitbreaker","owner":"solution10","description":"Simple circuit breaker implementation","archived":false,"fork":false,"pushed_at":"2016-08-25T13:20:54.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T10:04:40.155Z","etag":null,"topics":["circuit-breaker","composer-packages","php","stability"],"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/solution10.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-14T22:47:55.000Z","updated_at":"2016-05-14T22:48:19.000Z","dependencies_parsed_at":"2022-08-24T14:00:32.541Z","dependency_job_id":null,"html_url":"https://github.com/solution10/circuitbreaker","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solution10%2Fcircuitbreaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solution10%2Fcircuitbreaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solution10%2Fcircuitbreaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solution10%2Fcircuitbreaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solution10","download_url":"https://codeload.github.com/solution10/circuitbreaker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244804849,"owners_count":20513188,"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":["circuit-breaker","composer-packages","php","stability"],"created_at":"2025-01-26T09:19:30.500Z","updated_at":"2026-05-18T01:04:15.385Z","avatar_url":"https://github.com/solution10.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solution10\\CircuitBreaker\n\nSimple circuit breaker class.\n\n[![Build Status](https://travis-ci.org/Solution10/circuitbreaker.svg?branch=master)](https://travis-ci.org/Solution10/circuitbreaker)\n[![Latest Stable Version](https://poser.pugx.org/solution10/circuitbreaker/v/stable.svg)](https://packagist.org/packages/solution10/circuitbreaker)\n[![Total Downloads](https://poser.pugx.org/solution10/circuitbreaker/downloads.svg)](https://packagist.org/packages/solution10/circuitbreaker)\n[![License](https://poser.pugx.org/solution10/circuitbreaker/license.svg)](https://packagist.org/packages/solution10/circuitbreaker)\n\n## Features\n\n- Adjustable thresholds\n- Adjustable cooldowns\n- Events on change\n- Any Doctine\\Common\\Cache\\Cache implementation for persistence\n\n## Installation\n\nInstallation is via composer, in the usual manner:\n\n```sh\n$ composer require solution10/circuitbreaker\n```\n\n## Example usage\n\n```php\n\u003c?php\n\n$persistence = new \\Doctrine\\Common\\Cache\\ArrayCache();\n$breaker = new \\Solution10\\CircuitBreaker\\CircuitBreaker('my_backend_service', $persistence);\n\nif ($breaker-\u003eisClosed()) {\n    $response = doSomething();\n    if ($response) {\n        $breaker-\u003esuccess();\n    } else {\n        $breaker-\u003efailure();\n    }\n} else {\n    gracefullyDegrade();\n}\n```\n\n### Userguide\n\n[Check out the Wiki](https://github.com/Solution10/circuitbreaker/wiki)\n\n(or the /docs folder in the repo)\n\n\n## PHP Requirements\n\n- PHP \u003e= 5.5\n\n## Author\n\nAlex Gisby: [GitHub](http://github.com/alexgisby), [Twitter](http://twitter.com/alexgisby)\n\n## License\n\n[MIT](http://github.com/solution10/circuitbreaker/tree/master/LICENSE.md)\n\n## Contributing\n\n[Contributors Notes](http://github.com/solution10/circuitbreaker/tree/master/CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolution10%2Fcircuitbreaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolution10%2Fcircuitbreaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolution10%2Fcircuitbreaker/lists"}