{"id":15296330,"url":"https://github.com/psychob/ethereum-address-validator","last_synced_at":"2025-04-05T13:10:06.880Z","repository":{"id":51119242,"uuid":"136595482","full_name":"psychob/ethereum-address-validator","owner":"psychob","description":"Validate ethereum address in php","archived":false,"fork":false,"pushed_at":"2025-02-02T16:41:30.000Z","size":24,"stargazers_count":20,"open_issues_count":0,"forks_count":24,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T12:10:25.893Z","etag":null,"topics":["address-validation","cryptocurrency","ethereum","php","php7"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psychob.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}},"created_at":"2018-06-08T09:10:25.000Z","updated_at":"2025-03-15T20:59:02.000Z","dependencies_parsed_at":"2025-03-06T04:20:22.509Z","dependency_job_id":null,"html_url":"https://github.com/psychob/ethereum-address-validator","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psychob%2Fethereum-address-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psychob%2Fethereum-address-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psychob%2Fethereum-address-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psychob%2Fethereum-address-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psychob","download_url":"https://codeload.github.com/psychob/ethereum-address-validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339158,"owners_count":20923014,"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":["address-validation","cryptocurrency","ethereum","php","php7"],"created_at":"2024-09-30T18:10:07.377Z","updated_at":"2025-04-05T13:10:06.855Z","avatar_url":"https://github.com/psychob.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ethereum Address Validator\n--\n(c) by Andrzej Budzanowski \u003ckontakt@andrzej.budzanowski.pl\u003e\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/6ed9a66abca4f38be143/maintainability)](https://codeclimate.com/github/psychob/ethereum-address-validator/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/6ed9a66abca4f38be143/test_coverage)](https://codeclimate.com/github/psychob/ethereum-address-validator/test_coverage) [![Build Status](https://travis-ci.org/psychob/ethereum-address-validator.svg?branch=master)](https://travis-ci.org/psychob/ethereum-address-validator)\n\n## License\nMPL-2.0\n\n## Brief\nClass that verifies if [Ethereum](https://www.ethereum.org/) address is properly formatted and - optionaly - properly checksummed according to [EIP-55](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-55.md).\n\n## Installation\nUse composer:\n\n```bash\ncomposer require psychob/ethereum-address-validator\n```\n\n## Usage\n```php\n\u003c?php\n    use \\PsychoB\\Ethereum\\AddressValidator;\n    \n    // Addresses that have good format and checksum are considered valid\n    AddressValidator::isValid('0xA477941c7AAD6536f175ef123bf9eeD6F82A4c85') === AddressValidator::ADDRESS_VALID;\n    \n    // Also addresses that are all uppercase or all lowercase are considered valid (no checksum check performed)\n    AddressValidator::isValid('0xA477941C7AAD6536F175EF123BF9EED6F82A4C85') === AddressValidator::ADDRESS_VALID;\n    AddressValidator::isValid('0xa477941c7aad6536f175ef123bf9eed6f82a4c85') === AddressValidator::ADDRESS_VALID;\n    \n    // Addresses that have good format but incorrect checksum\n    AddressValidator::isValid('0xA477941c7aaD6536f175ef123bf9eeD6F82A4c85') === AddressValidator::ADDRESS_CHECKSUM_INVALID;\n    \n    // Address without proper format return\n    AddressValidator::isValid('invalid address') === AddressValidator::ADDRESS_INVALID;\n    \n    // To get canonical (properly checksummed) addres, use:\n    AddressValidator::getCanonicalAddress('0xA477941C7AAD6536F175EF123BF9EED6F82A4C85') === '0xA477941c7AAD6536f175ef123bf9eeD6F82A4c85'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsychob%2Fethereum-address-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsychob%2Fethereum-address-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsychob%2Fethereum-address-validator/lists"}