{"id":24570343,"url":"https://github.com/cjade/id-card","last_synced_at":"2025-09-08T03:40:07.352Z","repository":{"id":56953131,"uuid":"135967748","full_name":"cjade/id-card","owner":"cjade","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-05T02:18:03.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T16:19:17.048Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cjade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-04T03:47:49.000Z","updated_at":"2018-06-05T03:16:48.000Z","dependencies_parsed_at":"2022-08-21T08:20:28.662Z","dependency_job_id":null,"html_url":"https://github.com/cjade/id-card","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/cjade%2Fid-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjade%2Fid-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjade%2Fid-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjade%2Fid-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjade","download_url":"https://codeload.github.com/cjade/id-card/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243989031,"owners_count":20379648,"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-01-23T16:19:19.219Z","updated_at":"2025-03-17T06:48:39.856Z","avatar_url":"https://github.com/cjade.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## idcard\n二代身份证号码验证，可用于验证二代身份证号码是否合法、从身份证号码中获取生日/性别/年龄/地区信息 \n\n### 安装\n```php\ncomposer require cjade/id-card \n```\n### 环境要求\n- PHP \u003e= 5.6.0\n### 使用方法\n```php\nuse IdCard\\IdCard;\n\n$idCard = IdCard::create();\n$idCard-\u003esetId('******************');\n或者\n$idCard = IdCard::create('******************');\n\n// 获取生日，格式YYYY mm dd\n$identity-\u003egetBirthday('-');\n// 2018-06-01\n$identity-\u003egetBirthday('/');\n// 2018/06/01\n\n//验证身份证号码格式是否正确\nidCard = IdCard::create('******************');\n$result = $idCard-\u003echeck()\n//true或false\n或者\n$idCard = IdCard::create('******************')-\u003echeck();\n//true或false\n\n//获取身份证号\n$id = $idCard-\u003egetId();\n\n//\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjade%2Fid-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjade%2Fid-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjade%2Fid-card/lists"}