{"id":28836402,"url":"https://github.com/thebojda/php-metamask-login","last_synced_at":"2025-10-07T06:21:09.071Z","repository":{"id":296688281,"uuid":"994084531","full_name":"TheBojda/php-metamask-login","owner":"TheBojda","description":"PHP example for authenticating users via the MetaMask mobile app","archived":false,"fork":false,"pushed_at":"2025-06-01T10:44:04.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-01T19:13:39.431Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheBojda.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":"2025-06-01T06:58:21.000Z","updated_at":"2025-06-01T10:44:07.000Z","dependencies_parsed_at":"2025-06-01T19:13:41.270Z","dependency_job_id":"c05ddbff-558e-4815-864a-3b9d3faec7c2","html_url":"https://github.com/TheBojda/php-metamask-login","commit_stats":null,"previous_names":["thebojda/php-metamask-login"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheBojda/php-metamask-login","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBojda%2Fphp-metamask-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBojda%2Fphp-metamask-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBojda%2Fphp-metamask-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBojda%2Fphp-metamask-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheBojda","download_url":"https://codeload.github.com/TheBojda/php-metamask-login/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBojda%2Fphp-metamask-login/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260739028,"owners_count":23055071,"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":[],"created_at":"2025-06-19T11:05:35.195Z","updated_at":"2025-10-07T06:21:09.053Z","avatar_url":"https://github.com/TheBojda.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP MetaMask Login Demo\n\n## Usage\n\nTo use this system, you need a runtime environment accessible via **HTTPS** (such as **nginx**, **Apache**, etc.), since MetaMask only supports secure (HTTPS) links.\n\n## Setup\n\n1. Create a `.env` file.\n2. Set the `SITE_HOST` variable to the domain where the scripts will run.\n3. Set the web root directory to the `public` folder.\n\n## Login Flow\n\n- Open `index.php`, which displays a QR code.\n- Scan the QR code with your phone.\n- The **deeplink** will open **MetaMask** and load the `login.php` page with the generated `sessionid`.\n\n## Authentication\n\n- After a successful signature, `login.php` will store the Ethereum address in the database.\n- `index.php` refreshes itself every 10 seconds to check whether the Ethereum address has been recorded for the current `sessionid`.\n- If the address is found, the login is considered successful.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebojda%2Fphp-metamask-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthebojda%2Fphp-metamask-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebojda%2Fphp-metamask-login/lists"}