{"id":37261824,"url":"https://github.com/telcolab/mykad","last_synced_at":"2026-01-15T23:12:57.100Z","repository":{"id":57066497,"uuid":"87920789","full_name":"telcolab/mykad","owner":"telcolab","description":"A MyKad parser for Malaysian ID Number.","archived":false,"fork":false,"pushed_at":"2017-05-31T07:11:49.000Z","size":12,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-22T22:07:25.198Z","etag":null,"topics":["laravel","malaysia","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/telcolab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-11T10:23:04.000Z","updated_at":"2023-05-23T03:31:12.000Z","dependencies_parsed_at":"2022-08-24T07:41:12.458Z","dependency_job_id":null,"html_url":"https://github.com/telcolab/mykad","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/telcolab/mykad","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telcolab%2Fmykad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telcolab%2Fmykad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telcolab%2Fmykad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telcolab%2Fmykad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telcolab","download_url":"https://codeload.github.com/telcolab/mykad/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telcolab%2Fmykad/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["laravel","malaysia","php"],"created_at":"2026-01-15T23:12:56.575Z","updated_at":"2026-01-15T23:12:57.094Z","avatar_url":"https://github.com/telcolab.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/telcolab/mykad/v/stable)](https://packagist.org/packages/telcolab/mykad) [![Latest Unstable Version](https://poser.pugx.org/telcolab/mykad/v/unstable)](https://packagist.org/packages/telcolab/mykad) [![Total Downloads](https://poser.pugx.org/telcolab/mykad/downloads)](https://packagist.org/packages/telcolab/mykad) [![License](https://poser.pugx.org/telcolab/mykad/license)](https://packagist.org/packages/telcolab/mykad)\n\n## MyKad Parser\n\nA package created to split and fetch details in MyKad No.\n\n## Installation\n\n```\ncomposer require telcolab/mykad\n```\n\nOpen ```config/app.php``` and register in ```providers``` key\n```\n'providers' =\u003e [\n    ...\n\tTelcoLAB\\MyKad\\MyKadServiceProvider::class,\n];\n```\n\nand in ```aliases``` key\n```\n'aliases' =\u003e [\n    ...\n\tTelcoLAB\\MyKad\\Facades\\MyKad::class,\n];\n```\n\n## Usage\n\nImport class.\n```\nuse MyKad;\n```\n\nCall parse method.\n```\n$mykadNo = '970424022345'; //12 digits mykad number.\n$mykadNo = '970424-02-2345'; //12 digits mykad number.\n$mykadNo = '970424 02 2345'; //12 digits mykad number.\n\n$mykad = MyKad::parse($mykadNo);\n```\n\n##### Available properties\n\n```\n$mykad-\u003ehead //970424\n$mykad-\u003ebody //02\n$mykad-\u003etail //2345\n\n$mykad-\u003eage //19\n$mykad-\u003egender //male\n\n$mykad-\u003eday //24\n$mykad-\u003emonth //4\n$mykad-\u003eyear //1997\n```\n\n##### Available methods\n\n```\n$mykad-\u003eisOver($age) //true or false\n$mykad-\u003eisOver18() //true or false\n$mykad-\u003eisOver12() //true or false\n\n$mykad-\u003eisMale() //true or false\n$mykad-\u003eisFemale() //true or false\n```\n\n## License\n\nThis package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelcolab%2Fmykad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelcolab%2Fmykad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelcolab%2Fmykad/lists"}