{"id":15308164,"url":"https://github.com/ivantcholakov/egn","last_synced_at":"2025-04-15T00:54:57.776Z","repository":{"id":10975322,"uuid":"13292406","full_name":"ivantcholakov/egn","owner":"ivantcholakov","description":"A PHP class for validation and generation of EGN (personal identification numbers for Bulgarian citizens)","archived":false,"fork":false,"pushed_at":"2022-08-26T18:49:45.000Z","size":23,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T00:54:51.056Z","etag":null,"topics":["bulgarian-citizens","egn","php"],"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/ivantcholakov.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":"2013-10-03T06:59:14.000Z","updated_at":"2023-09-23T18:22:16.000Z","dependencies_parsed_at":"2022-08-28T16:42:01.615Z","dependency_job_id":null,"html_url":"https://github.com/ivantcholakov/egn","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/ivantcholakov%2Fegn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivantcholakov%2Fegn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivantcholakov%2Fegn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivantcholakov%2Fegn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivantcholakov","download_url":"https://codeload.github.com/ivantcholakov/egn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986280,"owners_count":21194025,"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":["bulgarian-citizens","egn","php"],"created_at":"2024-10-01T08:14:21.961Z","updated_at":"2025-04-15T00:54:57.760Z","avatar_url":"https://github.com/ivantcholakov.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Egn.php\n=======\n\nA PHP class for validation and generation of EGN (personal identification numbers for Bulgarian citizens)\n\nExamples:\n\n```php\n// EGN generation, for testing purposes.\n$egn = Egn::generate();\necho $egn;\n// Sample result: 9509125507\n// The result is a random valid EGN, not necessarily a real person posseses it.\n\necho '\u003cbr /\u003e';\n\n$egn = '9306295605';\n$is_valid = Egn::valid($egn);\n// $is_valid should be TRUE as a result.\necho $egn.' - '.($is_valid ? 'Valid' : 'Invalid');\n\necho '\u003cbr /\u003e';\n\n$egn = '9306295606';\n$is_valid = Egn::valid($egn);   // Boolean result\n// $is_valid should be FALSE as a result.\necho $egn.' - '.($is_valid ? 'Valid' : 'Invalid');\n\necho '\u003cbr /\u003e';\n\n$egn = '9306295605';\n$burthday = Egn::get_birthday($egn);\n// $burthday should be 1993-06-29\necho $egn.' - Birthday is '.$burthday;\n\necho '\u003cbr /\u003e';\n\n$egn = '9306295605';\n$gender = Egn::get_gender($egn);\n// $gender should be 'm' as a result ('m' for male, 'f' for female).\necho $egn.' - Gender is '.$gender;\n\necho '\u003cbr /\u003e';\n```\n\nLinks:\n\nhttp://georgi.unixsol.org/programs/egn.php\n\nhttp://georgi.unixsol.org/diary/archive.php/2006-09-29\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivantcholakov%2Fegn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivantcholakov%2Fegn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivantcholakov%2Fegn/lists"}