搜尋套件、儲存庫與 APP 分類

套件詳情v1.1.0

egyptian_id_parser

一個 Dart 套件,提供從埃及國民身分證號碼中提取個人資訊的功能。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
55
喜歡數
59
Pub 分數
150

安裝套件

flutter pub add egyptian_id_parser

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

egyptian_id_parser 套件是一個 Dart 工具,專門用於從埃及國民身分證號碼中提取個人資訊。它會解析身分證號碼,以取得出生日期、性別和省區等詳細資料,這些資料皆根據埃及身分證的結構化格式。此套件支援多種平台,包含 Android、iOS、Web、macOS、Windows 與 Linux,適用於跨平台應用程式。在需要自動化身分驗證或從官方埃及身分證中提取資料的系統中特別實用。

適用情境

  • 自動身份驗證
  • 身份資料提取
  • 政府服務整合
  • 使用者註冊工作流程
  • 文件處理系統

主要特色

  • 從身分證中提取出生日期
  • 從身分證確定性別
  • 標識原籍省
  • 跨平台相容性
  • 用於解析身分證號碼的簡單 API

適合對象

  • 開發埃及政府服務的開發者
  • 需要身份驗證的應用程式
  • 處理埃及國家文件的系統
  • 面向埃及的行動和網頁應用
  • 資料輸入自動化工具

使用建議

  • 需要有效的埃及身分證格式
  • 不驗證ID校驗和
  • 限於埃及身分證結構
  • 處理個人數據時的隱私考量
  • 依賴於準確的輸入格式

原始 README

以下為關聯原始碼儲存庫的 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

  • linkedin
  • youtube
  • facebook

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。