{"id":15384420,"url":"https://github.com/digitaldonkey/ecverify","last_synced_at":"2025-04-09T20:12:22.942Z","repository":{"id":32441009,"uuid":"133986853","full_name":"digitaldonkey/ecverify","owner":"digitaldonkey","description":"PHP based Ethereum web3 personal recover ","archived":false,"fork":false,"pushed_at":"2024-11-26T08:44:12.000Z","size":12,"stargazers_count":13,"open_issues_count":4,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T20:12:19.431Z","etag":null,"topics":["ecrecover","ecverify","ethereum","personal-ecrecover","php","web3"],"latest_commit_sha":null,"homepage":"https://github.com/digitaldonkey/ethereum-php","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/digitaldonkey.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"digitaldonkey","patreon":"digitaldonkey","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2018-05-18T17:50:05.000Z","updated_at":"2024-12-13T15:38:25.000Z","dependencies_parsed_at":"2025-01-31T17:35:16.888Z","dependency_job_id":"2d15e58c-f079-4d87-a15e-04529534d358","html_url":"https://github.com/digitaldonkey/ecverify","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaldonkey%2Fecverify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaldonkey%2Fecverify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaldonkey%2Fecverify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaldonkey%2Fecverify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitaldonkey","download_url":"https://codeload.github.com/digitaldonkey/ecverify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103872,"owners_count":21048245,"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":["ecrecover","ecverify","ethereum","personal-ecrecover","php","web3"],"created_at":"2024-10-01T14:41:52.676Z","updated_at":"2025-04-09T20:12:22.910Z","avatar_url":"https://github.com/digitaldonkey.png","language":"PHP","funding_links":["https://github.com/sponsors/digitaldonkey","https://patreon.com/digitaldonkey"],"categories":[],"sub_categories":[],"readme":"# PHP based EC recovery for Ethereum\n\nThis is the PHP equivalent to **web3.personal.ecRecover**.\n\n```javascript\nweb3.personal.ecRecover (\n   \"I want to create a Account on this website. By I signing this text (using Ethereum personal_sign) I agree to the following conditions.\",\n\"0xbbdcdfb9fbe24d460a683633475c77a44072b527a127b159ffaaa043f5dc944105a1671c8b9df95e377d89ec17a1a0ed13f5caa33e5fa80bdf12391bf2e04e4f1c\",\n(e,f)=\u003e{console.log(e,f)}\n)\n```\n## Usage\n\n```php\nuse Ethereum\\EcRecover;\n\n$addrss = '0xbe93f9bacbcffc8ee6663f2647917ed7a20a57bb';\n$message = 'hello world';\n$signature = '0xce909e8ea6851bc36c007a0072d0524b07a3ff8d4e623aca4c71ca8e57250c4d0a3fc38fa8fbaaa81ead4b9f6bd03356b6f8bf18bccad167d78891636e1d69561b';\n\n// Verify known address\n$valid = EcRecover::personalVerifyEcRecover($message,  $signature,  $address);\n\n// Recover unknown address\n$recoveredAddress = EcRecover::personalEcRecover($message, $signature);\nif ($recoveredAddress === $address) {\n  echo 'Jay! it was a long way here. '\n}\n```\n\n## Testing\n\n```bash\ncomposer install \nvendor/bin/phpunit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitaldonkey%2Fecverify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitaldonkey%2Fecverify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitaldonkey%2Fecverify/lists"}