{"id":36680152,"url":"https://github.com/raigu/personal-code-validation","last_synced_at":"2026-02-17T22:06:56.476Z","repository":{"id":45656267,"uuid":"211637449","full_name":"raigu/personal-code-validation","owner":"raigu","description":"Validation of Estonian person identification code according to the  standard \"EVS 585:2007 Personal code. Structure\"","archived":false,"fork":false,"pushed_at":"2023-12-11T21:04:26.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-20T14:39:33.845Z","etag":null,"topics":["code","estonia","estonian","personal","php","private","validation"],"latest_commit_sha":null,"homepage":"","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/raigu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-09-29T09:22:34.000Z","updated_at":"2021-12-03T05:53:16.000Z","dependencies_parsed_at":"2023-12-16T12:05:25.299Z","dependency_job_id":"fd9ef993-e45c-4ce5-b941-c0ebef1b383f","html_url":"https://github.com/raigu/personal-code-validation","commit_stats":{"total_commits":44,"total_committers":1,"mean_commits":44.0,"dds":0.0,"last_synced_commit":"10ea5e3e6b2aa697863f42364547cbf268833e31"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/raigu/personal-code-validation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raigu%2Fpersonal-code-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raigu%2Fpersonal-code-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raigu%2Fpersonal-code-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raigu%2Fpersonal-code-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raigu","download_url":"https://codeload.github.com/raigu/personal-code-validation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raigu%2Fpersonal-code-validation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:40:25.642Z","status":"ssl_error","status_checked_at":"2026-01-12T10:39:27.820Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["code","estonia","estonian","personal","php","private","validation"],"created_at":"2026-01-12T10:57:37.202Z","updated_at":"2026-02-17T22:06:56.463Z","avatar_url":"https://github.com/raigu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/raigu/personal-code-validation/v/stable)](https://packagist.org/packages/raigu/personal-code-validation)\n[![GitHub license](https://img.shields.io/github/license/raigu/personal-code-validation)](LICENSE.md)\n[![Total Downloads](https://poser.pugx.org/raigu/personal-code-validation/downloads)](https://packagist.org/packages/raigu/personal-code-validation)\n[![build](https://github.com/raigu/personal-code-validation/workflows/build/badge.svg)](https://github.com/raigu/personal-code-validation/actions?query=workflow%3Abuild)\n\n# Estonian person identification code validation\n\nValidation of Estonian personal identification code according to the \nstandard [EVS 585:2007 Personal code. Structure](https://www.evs.ee/products/evs-585-2007).\n\n# Compatibility\n\nPHP 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5\n\n# Motivation\n\nI needed a validation that states it fallows the official standard. I bought the standard from Estonian Centre for Standardisation and worked it through. \n\nI needed a package with long time support. It has no other dependencies and is tested against all supported PHP versions in [GitHub Action](https://github.com/raigu/personal-code-validation/actions).\n\n# Install \n\n````bash\n$ composer require raigu/personal-code-validation\n````\n\n# Usage \n\nValidation of personal code:\n\n```php\nrequire_once 'vendor/autoload.php';\n\nif (\\Raigu\\is_valid_personal_code('00000000000')) {\n    echo \"Valid\\n\";\n} else {\n    echo \"Invalid\\n\";\n}\n```\n\nCalculation of personal code's control number:\n\n```php\necho \\Raigu\\personal_code_control_number('1234567890') . \"\\n\";\necho \\Raigu\\personal_code_control_number('12345678901') . \"\\n\";\n```\nwill output:\n\n```text\n2\n2\n```\n\n# Testing\n\n```bash\n$ composer test\n```\n\n# License\n\nLicensed under [MIT](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraigu%2Fpersonal-code-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraigu%2Fpersonal-code-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraigu%2Fpersonal-code-validation/lists"}