Search packages, repositories and app categories

Package detailsv1.1.0

egyptian_id_parser

A Dart package that provides functionality to extract personal information from the Egyptian National ID number.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
55
Likes
59
Pub points
150

Install package

flutter pub add egyptian_id_parser

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The egyptian_id_parser package is a Dart utility designed to extract personal information from Egyptian National ID numbers. It parses the ID number to retrieve details such as birth date, gender, and governorate based on the structured format of the Egyptian ID. This package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, making it suitable for cross-platform applications. It is particularly useful in systems requiring automated identity verification or data extraction from official Egyptian IDs.

Use cases

  • Automated ID verification
  • Identity data extraction
  • Government service integration
  • User registration workflows
  • Document processing systems

Key features

  • Extracts birth date from ID
  • Determines gender from ID
  • Identifies governorate of origin
  • Cross-platform compatibility
  • Simple API for parsing ID numbers

Suitable for

  • Developers building Egyptian government services
  • Apps requiring identity validation
  • Systems processing Egyptian national documents
  • Mobile and web apps targeting Egypt
  • Data entry automation tools

Considerations

  • Requires valid Egyptian ID format
  • Does not validate ID checksums
  • Limited to Egyptian ID structure
  • Privacy considerations when handling personal data
  • Depends on accurate input formatting

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Source repository

Projects using this package

No data available yet.