{"id":22292022,"url":"https://github.com/aedart/athenaeum-circuits","last_synced_at":"2025-08-26T22:14:37.353Z","repository":{"id":56899574,"uuid":"266489161","full_name":"aedart/athenaeum-circuits","owner":"aedart","description":"[READ ONLY] Athenaeum Circuits package - see https://github.com/aedart/athenaeum","archived":false,"fork":false,"pushed_at":"2025-07-21T08:07:09.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-21T10:13:11.940Z","etag":null,"topics":["circuit-breaker"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aedart.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,"zenodo":null}},"created_at":"2020-05-24T07:13:03.000Z","updated_at":"2025-07-21T08:07:12.000Z","dependencies_parsed_at":"2023-11-17T09:52:59.768Z","dependency_job_id":"9c6416e1-4265-4a41-980d-d41f03b44c97","html_url":"https://github.com/aedart/athenaeum-circuits","commit_stats":{"total_commits":228,"total_committers":2,"mean_commits":114.0,"dds":0.2543859649122807,"last_synced_commit":"d0fe7864d46f627202b0c6cdfb071e048650fe98"},"previous_names":[],"tags_count":145,"template":false,"template_full_name":null,"purl":"pkg:github/aedart/athenaeum-circuits","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-circuits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-circuits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-circuits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-circuits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aedart","download_url":"https://codeload.github.com/aedart/athenaeum-circuits/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-circuits/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267604306,"owners_count":24114521,"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-07-28T02:00:09.689Z","response_time":68,"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":["circuit-breaker"],"created_at":"2024-12-03T17:19:19.583Z","updated_at":"2025-07-28T23:32:55.919Z","avatar_url":"https://github.com/aedart.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Athenaeum Circuits\n\nThis package offers a Circuit Breaker that can be used to \"_[...] detect failures and encapsulates the logic of preventing a failure from constantly recurring, during maintenance, temporary external system failure or unexpected system difficulties[...]_\" ([wiki](https://en.wikipedia.org/wiki/Circuit_breaker_design_pattern)).\n\nA detailed explanation of how the Circuit Breaker Pattern works, can be found on [Medium](https://medium.com/@soumendrak/circuit-breaker-design-pattern-997c3521c1c4) and [Martin Fowler's blog](https://martinfowler.com/bliki/CircuitBreaker.html)\n\n## Example\n\n```php\n\u003c?php\n\nuse Aedart\\Circuits\\Traits\\CircuitBreakerManagerTrait;\n\nclass WeatherService\n{\n    use CircuitBreakerManagerTrait;\n\n    public function forecast()\n    {\n        $circuitBreaker = $this-\u003egetCircuitBreakerManager()\n                -\u003ecreate('weather_service');\n\n        return $circuitBreaker-\u003eattempt(function() {\n            // Perform 3rd party API call... not shown here\n        }, function(){\n            // Service has failed and is unavailable, do something else...\n        });\n    }\n}\n``` \n\n## Documentation\n\nPlease read the [official documentation](https://aedart.github.io/athenaeum/) for additional information.\n\n## Repository\n\nThe mono repository is located at [github.com/aedart/athenaeum](https://github.com/aedart/athenaeum)\n\n## Versioning\n\nThis package follows [Semantic Versioning 2.0.0](http://semver.org/)\n\n## License\n\n[BSD-3-Clause](http://spdx.org/licenses/BSD-3-Clause), Read the LICENSE file included in this package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faedart%2Fathenaeum-circuits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faedart%2Fathenaeum-circuits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faedart%2Fathenaeum-circuits/lists"}