{"id":15750682,"url":"https://github.com/guibranco/pancake","last_synced_at":"2026-05-05T06:07:00.862Z","repository":{"id":228412650,"uuid":"773903434","full_name":"guibranco/pancake","owner":"guibranco","description":"🧰 🛠️ Pancake project - toolkit for PHP projects","archived":false,"fork":false,"pushed_at":"2026-04-02T01:01:01.000Z","size":1679,"stargazers_count":3,"open_issues_count":14,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-02T05:00:41.226Z","etag":null,"topics":["communication","composer","hacktoberfest","helpers","library","packagist","php","toolkit"],"latest_commit_sha":null,"homepage":"http://guilherme.stracini.com.br/pancake/","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/guibranco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-18T15:47:27.000Z","updated_at":"2026-04-02T00:49:12.000Z","dependencies_parsed_at":"2024-03-20T23:43:08.195Z","dependency_job_id":"3f5cb7e0-8962-41bc-9322-44047a3e476e","html_url":"https://github.com/guibranco/pancake","commit_stats":{"total_commits":221,"total_committers":8,"mean_commits":27.625,"dds":"0.38009049773755654","last_synced_commit":"b3036075e59315aac6583953d612e1c0f4892275"},"previous_names":["guibranco/pancake"],"tags_count":324,"template":false,"template_full_name":null,"purl":"pkg:github/guibranco/pancake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fpancake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fpancake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fpancake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fpancake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guibranco","download_url":"https://codeload.github.com/guibranco/pancake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fpancake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31524531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["communication","composer","hacktoberfest","helpers","library","packagist","php","toolkit"],"created_at":"2024-10-04T06:41:57.803Z","updated_at":"2026-05-05T06:07:00.856Z","avatar_url":"https://github.com/guibranco.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🥞 Pancake\n\n\u003e A lightweight, composable toolkit for PHP 8.4+ projects.\n\n[![CI](https://github.com/guibranco/pancake/actions/workflows/ci.yml/badge.svg)](https://github.com/guibranco/pancake/actions/workflows/ci.yml)\n[![GitHub license](https://img.shields.io/github/license/guibranco/pancake)](https://github.com/guibranco/pancake/blob/main/LICENSE)\n[![Packagist Version](https://img.shields.io/packagist/v/guibranco/pancake.svg)](https://packagist.org/packages/guibranco/pancake)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/guibranco/pancake)](https://packagist.org/packages/guibranco/pancake)\n[![Time tracker](https://wakatime.com/badge/github/guibranco/pancake.svg)](https://wakatime.com/badge/github/guibranco/pancake)\n\n![Pancake logo](https://raw.githubusercontent.com/guibranco/pancake/main/logo.png)\n\n📖 **Documentation:** [guibranco.github.io/pancake](https://guibranco.github.io/pancake/)\n\n---\n\n## Table of contents\n\n- [Features](#features)\n- [CI/CD](#cicd)\n- [Code quality](#code-quality)\n- [Installation](#installation)\n- [User guide](#user-guide)\n- [Testing](#testing)\n- [Changelog](#changelog)\n- [Contributing](#contributing)\n- [Support](#support)\n\n---\n\n## Features\n\nPancake provides a curated set of battle-tested utility classes, ready to drop into any PHP project:\n\n| Class | Description |\n|---|---|\n| [`CircuitBreaker`](https://guibranco.github.io/pancake/user-guide/basic-usage/) | Prevents cascading failures with open/half-open/closed state management |\n| [`Color`](https://guibranco.github.io/pancake/user-guide/color/) | Color conversion and manipulation utilities |\n| [`Database`](https://guibranco.github.io/pancake/user-guide/database/) | Thin PDO wrapper with query building helpers |\n| [`GUIDv4`](https://guibranco.github.io/pancake/user-guide/guid-v4/) | RFC 4122-compliant UUID v4 generator |\n| [`GitHub`](https://guibranco.github.io/pancake/user-guide/github/) | Interact with the GitHub REST API |\n| [`HealthChecks`](https://guibranco.github.io/pancake/user-guide/health-checks/) | Liveness and readiness probe endpoints |\n| [`IpUtils`](https://guibranco.github.io/pancake/user-guide/ip-utils/) | IP address parsing, validation, and range checking |\n| [`Logger`](https://guibranco.github.io/pancake/user-guide/logger/) | PSR-3 compatible structured logger |\n| [`LogStream`](https://guibranco.github.io/pancake/user-guide/logstream/) | Real-time log ingestion and streaming client |\n| [`MemoryCache`](https://guibranco.github.io/pancake/user-guide/memory-cache/) | Shared-memory key/value store backed by `shmop` |\n| [`OneSignal`](https://guibranco.github.io/pancake/user-guide/one-signal/) | Push notification client for the OneSignal API |\n| [`Request`](https://guibranco.github.io/pancake/user-guide/request/) | Fluent HTTP client with `curl_multi` support |\n| [`SessionManager`](https://guibranco.github.io/pancake/user-guide/session-manager/) | Secure session handling with lifetime and flash support |\n| [`ShieldsIo`](https://guibranco.github.io/pancake/user-guide/shieldsio/) | Shields.io badge builder with cache-control |\n\n---\n\n## CI/CD\n\n| Build | Last commit | Coverage | Code smells | Lines of code |\n|:---:|:---:|:---:|:---:|:---:|\n| [![CI](https://github.com/guibranco/pancake/actions/workflows/ci.yml/badge.svg)](https://github.com/guibranco/pancake/actions/workflows/ci.yml) | [![GitHub last commit](https://img.shields.io/github/last-commit/guibranco/pancake/main)](https://github.com/guibranco/pancake) | [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=guibranco_pancake\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=guibranco_pancake) | [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=guibranco_pancake\u0026metric=code_smells)](https://sonarcloud.io/dashboard?id=guibranco_pancake) | [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=guibranco_pancake\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=guibranco_pancake) |\n\n---\n\n## Code quality\n\n[![Codacy Grade](https://app.codacy.com/project/badge/Grade/9a369e8dc1e74ba1b18c309935c7af4b)](https://app.codacy.com/gh/guibranco/pancake/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\n[![Codacy Coverage](https://app.codacy.com/project/badge/Coverage/9a369e8dc1e74ba1b18c309935c7af4b)](https://app.codacy.com/gh/guibranco/pancake/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_coverage)\n[![Codecov](https://codecov.io/gh/guibranco/pancake/branch/main/graph/badge.svg)](https://codecov.io/gh/guibranco/pancake)\n[![CodeFactor](https://www.codefactor.io/repository/github/guibranco/pancake/badge)](https://www.codefactor.io/repository/github/guibranco/pancake)\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=guibranco_pancake\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=guibranco_pancake)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=guibranco_pancake\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=guibranco_pancake)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=guibranco_pancake\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=guibranco_pancake)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=guibranco_pancake\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=guibranco_pancake)\n\n[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=guibranco_pancake\u0026metric=sqale_index)](https://sonarcloud.io/dashboard?id=guibranco_pancake)\n[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=guibranco_pancake\u0026metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=guibranco_pancake)\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=guibranco_pancake\u0026metric=bugs)](https://sonarcloud.io/dashboard?id=guibranco_pancake)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=guibranco_pancake\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=guibranco_pancake)\n\n[![Maintainability](https://qlty.sh/gh/guibranco/projects/Pancake/maintainability.svg)](https://qlty.sh/gh/guibranco/projects/Pancake)\n[![Code Coverage](https://qlty.sh/gh/guibranco/projects/Pancake/coverage.svg)](https://qlty.sh/gh/guibranco/projects/Pancake)\n[![DeepSource](https://app.deepsource.com/gh/guibranco/pancake.svg/?label=active+issues\u0026show_trend=true\u0026token=r3XGa8MQHGZERdIhKB5EZXfL)](https://app.deepsource.com/gh/guibranco/pancake/?ref=repository-badge)\n\n---\n\n## Installation\n\n**Requirements:** PHP 8.4+, Composer\n\n### Via Composer (recommended)\n\n```bash\ncomposer require guibranco/pancake\n```\n\n### Via GitHub Releases\n\nDownload the latest archive from the [Releases](https://github.com/GuiBranco/pancake/releases) page and include the autoloader manually.\n\n[![GitHub release date](https://img.shields.io/github/release-date/guibranco/pancake.svg)](https://github.com/guibranco/pancake/releases)\n\n---\n\n## User guide\n\nFull documentation, class references, and examples live at **[guibranco.github.io/pancake](https://guibranco.github.io/pancake/user-guide/basic-usage/)**.\n\n### Quick start\n\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\nuse GuiBranco\\Pancake\\CircuitBreaker;\nuse GuiBranco\\Pancake\\MemoryCache;\nuse GuiBranco\\Pancake\\Request;\n\n// Protect an external API call with a circuit breaker\n$cb = new CircuitBreaker(new MemoryCache(), failureThreshold: 3, resetTimeout: 60);\n\n$result = $cb-\u003eexecute(function () {\n    $request = new Request();\n    return $request-\u003eget('https://api.example.com/data');\n});\n```\n\n---\n\n## Testing\n\n### Requirements\n\n- PHP 8.4+\n- Composer\n- MySQL / MariaDB running locally with the following config:\n\n| Setting | Value |\n|---|---|\n| Host | `localhost` |\n| Port | `3306` |\n| User | `root` |\n| Password | `root` |\n| Database | `pancake` |\n\n- [WireMock](https://wiremock.org/) for integration tests (see [`docker-compose.yml`](docker-compose.yml))\n\n### Running the test suite\n\n```bash\n# Install dependencies\ncomposer install\n\n# Start WireMock (required for integration tests)\ndocker compose up -d\n\n# Run all tests\n./vendor/bin/phpunit tests\n\n# Run only unit tests\n./vendor/bin/phpunit tests/Unit\n\n# Run only integration tests\n./vendor/bin/phpunit tests/Integration\n```\n\n---\n\n## Changelog\n\nSee [CHANGELOG](https://guibranco.github.io/pancake/changelog/) for the full history of releases and changes.\n\n---\n\n## Contributing\n\nContributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request.\n\n### Contributors\n\n\u003c!-- readme: collaborators,contributors,snyk-bot/- -start --\u003e\n\u003ctable\u003e\n\t\u003ctbody\u003e\n\t\t\u003ctr\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://github.com/guibranco\"\u003e\n                    \u003cimg src=\"https://avatars.githubusercontent.com/u/3362854?v=4\" width=\"100;\" alt=\"guibranco\"/\u003e\n                    \u003cbr /\u003e\n                    \u003csub\u003e\u003cb\u003eGuilherme Branco Stracini\u003c/b\u003e\u003c/sub\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://github.com/gvieiragoulart\"\u003e\n                    \u003cimg src=\"https://avatars.githubusercontent.com/u/116896794?v=4\" width=\"100;\" alt=\"gvieiragoulart\"/\u003e\n                    \u003cbr /\u003e\n                    \u003csub\u003e\u003cb\u003eGabriel Goulart\u003c/b\u003e\u003c/sub\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://github.com/Hero-Aviraj\"\u003e\n                    \u003cimg src=\"https://avatars.githubusercontent.com/u/178659748?v=4\" width=\"100;\" alt=\"Hero-Aviraj\"/\u003e\n                    \u003cbr /\u003e\n                    \u003csub\u003e\u003cb\u003eHaraprasad Mondal\u003c/b\u003e\u003c/sub\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://github.com/Humayun-23\"\u003e\n                    \u003cimg src=\"https://avatars.githubusercontent.com/u/70696397?v=4\" width=\"100;\" alt=\"Humayun-23\"/\u003e\n                    \u003cbr /\u003e\n                    \u003csub\u003e\u003cb\u003eSheikh Humayun Roshid\u003c/b\u003e\u003c/sub\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n\t\t\u003c/tr\u003e\n\t\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c!-- readme: collaborators,contributors,snyk-bot/- -end --\u003e\n\n### Bots\n\n\u003c!-- readme: bots,snyk-bot -start --\u003e\n\u003ctable\u003e\n\t\u003ctbody\u003e\n\t\t\u003ctr\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://github.com/dependabot[bot]\"\u003e\n                    \u003cimg src=\"https://avatars.githubusercontent.com/in/29110?v=4\" width=\"100;\" alt=\"dependabot[bot]\"/\u003e\n                    \u003cbr /\u003e\n                    \u003csub\u003e\u003cb\u003edependabot[bot]\u003c/b\u003e\u003c/sub\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://github.com/github-actions[bot]\"\u003e\n                    \u003cimg src=\"https://avatars.githubusercontent.com/in/15368?v=4\" width=\"100;\" alt=\"github-actions[bot]\"/\u003e\n                    \u003cbr /\u003e\n                    \u003csub\u003e\u003cb\u003egithub-actions[bot]\u003c/b\u003e\u003c/sub\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://github.com/gitauto-ai[bot]\"\u003e\n                    \u003cimg src=\"https://avatars.githubusercontent.com/in/844909?v=4\" width=\"100;\" alt=\"gitauto-ai[bot]\"/\u003e\n                    \u003cbr /\u003e\n                    \u003csub\u003e\u003cb\u003egitauto-ai[bot]\u003c/b\u003e\u003c/sub\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://github.com/deepsource-autofix[bot]\"\u003e\n                    \u003cimg src=\"https://avatars.githubusercontent.com/in/57168?v=4\" width=\"100;\" alt=\"deepsource-autofix[bot]\"/\u003e\n                    \u003cbr /\u003e\n                    \u003csub\u003e\u003cb\u003edeepsource-autofix[bot]\u003c/b\u003e\u003c/sub\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://github.com/penify-dev[bot]\"\u003e\n                    \u003cimg src=\"https://avatars.githubusercontent.com/in/399279?v=4\" width=\"100;\" alt=\"penify-dev[bot]\"/\u003e\n                    \u003cbr /\u003e\n                    \u003csub\u003e\u003cb\u003epenify-dev[bot]\u003c/b\u003e\u003c/sub\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://github.com/snyk-bot\"\u003e\n                    \u003cimg src=\"https://avatars.githubusercontent.com/u/19733683?v=4\" width=\"100;\" alt=\"snyk-bot\"/\u003e\n                    \u003cbr /\u003e\n                    \u003csub\u003e\u003cb\u003eSnyk Bot\u003c/b\u003e\u003c/sub\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n\t\t\u003c/tr\u003e\n\t\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c!-- readme: bots,snyk-bot -end --\u003e\n\n---\n\n## Support\n\nPlease [open an issue](https://github.com/guibranco/pancake/issues/new/choose) for bug reports, feature requests, or questions.\n\n---\n\n\u003csub\u003eCopyright © Guilherme Branco Stracini. Released under the [MIT License](LICENSE).\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguibranco%2Fpancake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguibranco%2Fpancake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguibranco%2Fpancake/lists"}