FLUTTER ECOSYSTEM

mohamedelbaiomy/egyptian-id-parser

14자리의 이집트 국적 번호를 기반으로 생년월일, 성별, 주 등 개인 정보를 추출하는 기능을 제공하는 Dart 패키지입니다.

이집트 주민등록증 파서 프로젝트 이미지
Stars
9
Forks
2
최근 푸시(UTC)
2025. 10. 30.
프로젝트 상태
활성
Mohamed Elbaiomy GitHub avatar
GITHUB User

Mohamed Elbaiomy ↗

Student at the Faculty of Computers & Artificial Intelligence, highly dedicated to mobile development with a particular focus on Flutter.

언어Dart

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • lints개발 의존성^6.0.0
  • test개발 의존성^1.26.3

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Egyptian ID Parser

pub package MIT License Latest Dartdocs Language: Dart GitHub stars All Contributors likes popularity pub points

The Egyptian ID Parser is a Dart package designed to extract personal information from the Egyptian National ID number. This package enables developers to easily retrieve essential details, including date of birth, gender, and governorate, from the 14-digit national ID.

Features

  • Extract Birth Date: Retrieve the birth date in the format YYYY-MM-DD from the national ID.
  • Determine Gender: Identify the gender (male or female) based on the national ID.
  • Identify Governorate: Find the governorate of residence linked to the national ID.
  • Calculate Age: Compute the age in years, months, and days from the birth date.

Usage

  1. To use the Egyptian ID Parser package, add it to your pubspec.yaml file and import it into your project.
dependencies:
  egyptian_id_parser: ^1.1.0
  1. create an instance of EgyptianIdParser with a valid ID number to access birth date, governorate, gender, and age information. :

import 'package:egyptian_id_parser/egyptian_id_parser.dart';

void main() {
  String idNumber = "12345678901234"; // Replace with a valid ID number
  var id = EgyptianIdParser(idNumber);

  print('Birth Date: ${id.birthDate}');
  print('Governorate: ${id.governorate}');
  print('Gender: ${id.gender}');
  print('Age: ${id.age}');
}

🔗 Mohamed Elbaiomy