搜索插件、代码仓与 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

所属分类

源码仓库

使用此插件的项目

暂无相关数据。