{"id":35185784,"url":"https://github.com/devitools/util","last_synced_at":"2026-05-21T06:01:35.413Z","repository":{"id":330341397,"uuid":"1122461471","full_name":"devitools/util","owner":"devitools","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-24T20:03:40.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-26T09:57:37.139Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devitools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-24T19:27:35.000Z","updated_at":"2025-12-24T20:03:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/devitools/util","commit_stats":null,"previous_names":["devitools/util"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/devitools/util","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devitools%2Futil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devitools%2Futil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devitools%2Futil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devitools%2Futil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devitools","download_url":"https://codeload.github.com/devitools/util/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devitools%2Futil/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33290928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"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":[],"created_at":"2025-12-29T04:58:09.867Z","updated_at":"2026-05-21T06:01:35.402Z","avatar_url":"https://github.com/devitools.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# util.devi.tools\n\nA mock API utility service that provides random success/failure responses for testing unreliable external services.\n\n## Purpose\n\nThis tool simulates flaky third-party APIs, helping developers test:\n- Retry mechanisms\n- Error handling\n- Circuit breakers\n- Fallback strategies\n\n## API Endpoints\n\n### Authorization Check\n```\nGET /api/v{n}/authorize\n```\nRandomly returns:\n- `200` with `{ \"status\": \"success\", \"data\": { \"authorization\": true } }`\n- `403` with `{ \"status\": \"fail\", \"data\": { \"authorization\": false } }`\n\n### Notification\n```\nPOST /api/v{n}/notify\n```\nRandomly returns:\n- `204` (empty body)\n- `504` with `{ \"status\": \"error\", \"message\": \"The service is not available, try again later\" }`\n\nAll responses include a fun `X-HTTP-Status-Cat` header linking to [http.cat](https://http.cat).\n\n## Local Development\n\n```bash\nmake up      # Start containers\nmake down    # Stop containers\nmake logs    # View logs\nmake shell   # Open shell in container\n```\n\nThe service runs on the `reverse-proxy` network and is accessible at `util.devi.tools` when configured with a local reverse proxy.\n\n## Testing\n\n```bash\nmake test    # Run tests inside container\n```\n\n## Requirements\n\n- Docker\n- Docker Compose\n- Make\n- External `reverse-proxy` network\n\n## Tech Stack\n\n- PHP 8.3\n- Nginx (via webdevops/php-nginx image)\n- Docker\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevitools%2Futil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevitools%2Futil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevitools%2Futil/lists"}