{"id":15562354,"url":"https://github.com/mohammadv184/irvalidator","last_synced_at":"2025-03-29T04:44:46.565Z","repository":{"id":213017328,"uuid":"732822913","full_name":"mohammadv184/irvalidator","owner":"mohammadv184","description":"IRValidator is a C library that provides validation for various Iranian identification systems.","archived":false,"fork":false,"pushed_at":"2023-12-18T01:45:39.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T14:38:47.778Z","etag":null,"topics":["c","iran","library"],"latest_commit_sha":null,"homepage":"","language":"C","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/mohammadv184.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}},"created_at":"2023-12-17T23:33:08.000Z","updated_at":"2023-12-18T15:50:08.000Z","dependencies_parsed_at":"2023-12-18T02:48:29.032Z","dependency_job_id":null,"html_url":"https://github.com/mohammadv184/irvalidator","commit_stats":null,"previous_names":["mohammadv184/iridvalidator","mohammadv184/irvalidator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadv184%2Firvalidator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadv184%2Firvalidator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadv184%2Firvalidator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadv184%2Firvalidator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohammadv184","download_url":"https://codeload.github.com/mohammadv184/irvalidator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140543,"owners_count":20729797,"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":["c","iran","library"],"created_at":"2024-10-02T16:13:47.942Z","updated_at":"2025-03-29T04:44:46.535Z","avatar_url":"https://github.com/mohammadv184.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IRValidator\nIRValidator is a C library that provides validation for various Iranian identification systems. It includes validation for cards, national IDs, and phone numbers.\n\n## Building\nTo build the library, you need a C compiler and the make utility. Once you have these installed, you can build the library by running:\n```bash\nmake all\n```\n\nThis will compile the source files and create a static library libirvalidator.a.\n\n## Testing\nTo run the tests for the library, use the make test command:\n```bash\nmake test\n```\n\nThis will compile the test source files, link them with the library, and run the tests.\n\n## Installation\nTo install the library, use the make install command:\n```bash\nmake install\n```\nPlease note that you might need to run this command with sudo or as root, depending on your system's configuration.\n\n## Usage\nTo use the library in your C programs, include the appropriate header files and link with the library. For example:\n```c\n#include \u003cirvalidator/card.h\u003e\n#include \u003cirvalidator/national_id.h\u003e\n#include \u003cirvalidator/phone.h\u003e\n\nint main() {\n    // Validate a card number\n    char *card_number = \"6274129000000000\";\n    if (is_valid_card(card_number)) {\n        printf(\"Card number is valid\\n\");\n    } else {\n        printf(\"Card number is invalid\\n\");\n    }\n    \n    // Validate a national ID\n    char *national_id = \"0012345678\";\n    if (is_valid_national_id(national_id)) {\n        printf(\"National ID is valid\\n\");\n    } else {\n        printf(\"National ID is invalid\\n\");\n    }\n    \n    // Validate a phone number\n    char *phone_number = \"09123456789\";\n    if (is_valid_phone(phone_number)) {\n        printf(\"Phone number is valid\\n\");\n    } else {\n        printf(\"Phone number is invalid\\n\");\n    }\n    \n    return 0;\n}\n```\nWhen compiling your program, don't forget to link with the library:\n```bash\ngcc your_program.c -lirvalidator -o your_program\n```\n\n## Cleaning Up\nYou can clean up the build artifacts using the make clean command:\n```bash\nmake clean\n```\n\n## Credits\n\n- [Mohammad Abbasi](https://github.com/mohammadv184)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadv184%2Firvalidator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohammadv184%2Firvalidator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadv184%2Firvalidator/lists"}