搜索插件、代码仓与 APP 分类

GitHub 代码仓mohamedelbaiomy/egyptian-id-parser

埃及身份证解析器

一个 Dart 包,可从 14 位埃及身份证号码中提取个人信息,例如出生日期、性别和省区。

埃及身份证解析器 项目封面
星标
9
复刻
2
最近推送(UTC)
2025年10月30日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

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

  • linkedin
  • youtube
  • facebook

Mohamed Elbaiomy GitHub avatar
GitHub 作者

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

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗