{"id":25125848,"url":"https://github.com/hellocoop/php","last_synced_at":"2025-09-16T05:12:02.286Z","repository":{"id":264395974,"uuid":"893254909","full_name":"hellocoop/php","owner":"hellocoop","description":"Hellō PHP Core Package","archived":false,"fork":false,"pushed_at":"2025-09-08T23:15:02.000Z","size":233,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-09T00:49:33.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.hello.dev/","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/hellocoop.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":"2024-11-23T23:50:01.000Z","updated_at":"2025-08-28T16:29:43.000Z","dependencies_parsed_at":"2024-12-09T06:24:35.607Z","dependency_job_id":"9765991f-8c94-4f28-acf4-a13bbc6e6187","html_url":"https://github.com/hellocoop/php","commit_stats":null,"previous_names":["unnikrishnanbhargavakurup/hellocoop","hellocoop/php"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/hellocoop/php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocoop%2Fphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocoop%2Fphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocoop%2Fphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocoop%2Fphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellocoop","download_url":"https://codeload.github.com/hellocoop/php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocoop%2Fphp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275364760,"owners_count":25451517,"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-09-16T02:00:10.229Z","response_time":65,"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":[],"created_at":"2025-02-08T09:16:30.546Z","updated_at":"2025-09-16T05:12:02.255Z","avatar_url":"https://github.com/hellocoop.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Hellō][7] Identity Provider (IdP) Client in PHP\n\n|          Release          |         Tests          |      Coverage       |\n|:-------------------------:|:----------------------:|:-------------------:|\n| [![Latest Version][1]][2] | [![Test Status][3]][4] | [![Coverage][5]][6] |\n\nHellō enables your users to register and log in using their choice of popular social logins, email, or phone—without\ntracking them. Hellō is a cloud identity wallet with a mission to empower users to control their digital identities.\n\n## Key Features\n- **Social Login**: Support for popular providers like Google, Facebook, etc.\n- **Email and Phone Authentication**: Verified email or phone login.\n- **User Privacy First**: Focused on giving users control without tracking.\n- **Quick Integration**: Set up authentication in minutes.\n\n### Developer-Friendly\nThe easiest and quickest way to onboard and authenticate your users with popular social providers, verified email, and\nphone. Hellō can be integrated into your application in minutes, not hours.\n\n## Getting Started\nThe following example demonstrates how to integrate the Hellō client into your PHP application.\n\n### Installation\nInstall the library using Composer:\n```bash\ncomposer require unnikrishnanbhargavakurup/hellocoop\n```\n\n### Usage\n```php\nuse HelloCoop\\Config\\HelloConfig;\nuse HelloCoop\\HelloClient;\n\n// Step 1: Define all required configurations\ndefine('API_ROUTE', '/api/hellocoop'); // Define the API route\n// App ID from https://console.hello.coop/\ndefine('APP_ID', 'app_43tf7X1qHvsCVZIuPQtzQE8J_KQq'); \n// Add your domain name here (e.g., ngrok domain or deployed domain)\ndefine('HOST', 'b46e-223-205-76-153.ngrok-free.app');\n// Create a 32-byte hex secret key using the command: openssl rand -hex 32\ndefine('SECRET', '1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'); \n\n// Step 2: Create an instance of the HelloConfig class\n$config = new HelloConfig(\n    API_ROUTE,                              // $apiRoute: The base API route\n    API_ROUTE . '?op=auth',                 // $authApiRoute: The route for authentication\n    API_ROUTE . '?op=login',                // $loginApiRoute: The route for login\n    API_ROUTE . '?op=logout',               // $logoutApiRoute: The route for logout\n    false,                                  // CSRF protection (false to restrict cross-origin requests)\n    APP_ID,                                 // Application ID\n    'https://' . HOST . API_ROUTE,          // Full API URL\n    HOST,                                   // Hostname\n    SECRET                                  // Secret key for encryption and decryption of data\n);\n\n// Step 3: Create an instance of HelloClient\n$helloClient = new HelloClient($config);\n\n$requestUri = $_SERVER['REQUEST_URI'];\n$parsedUrl = parse_url($requestUri); // Extract the path from the request URI, ignoring query parameters\n$requestPath = $parsedUrl['path'] ?? '';\n\n// Step 4: Route Hellō API requests\nif ($requestPath === API_ROUTE) {\n    $helloClient-\u003eroute(); // Handle the routing of the API request\n}\n```\n\n## Code Quality: Pre-Commit Hook for Linting\nTo maintain code quality, this project uses a **pre-commit hook** for automatic linting before each commit.\n\n### Setup Instructions\n1. **Copy the pre-commit hook to your Git hooks directory**:\n   ```bash\n   cp pre-commit .git/hooks/\n   ```\n\n2. **Make the hook executable** (if it’s not already):\n   ```bash\n   chmod +x .git/hooks/pre-commit\n   ```\n\nThis ensures code quality and consistency across the project.\n\n## Contributing\nWe welcome contributions! Please open an issue or submit a pull request with your changes. Make sure your contributions\nadhere to the code style guidelines enforced by the pre-commit hook.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.\n\n[1]: https://img.shields.io/github/release/UnnikrishnanBhargavakurup/hellocoop.svg?style=flat-square\n[2]: https://github.com/UnnikrishnanBhargavakurup/hellocoop/releases\n[3]: https://github.com/UnnikrishnanBhargavakurup/hellocoop/actions/workflows/continuous-integration.yml/badge.svg\n[4]: https://github.com/UnnikrishnanBhargavakurup/hellocoop/actions\n[5]: https://codecov.io/gh/UnnikrishnanBhargavakurup/hellocoop/graph/badge.svg?token=GFPX13L1TM\n[6]: https://codecov.io/gh/UnnikrishnanBhargavakurup/hellocoop\n[7]: https://www.hello.coop/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellocoop%2Fphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellocoop%2Fphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellocoop%2Fphp/lists"}