PHPackages                             yasser-elgammal/laravel-egypt-national-id-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. yasser-elgammal/laravel-egypt-national-id-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

yasser-elgammal/laravel-egypt-national-id-parser
================================================

A package to parse egyptian national id number.

v1.0.0(1y ago)07MITPHP

Since Feb 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/YasserElgammal/laravel-egypt-national-id-parser)[ Packagist](https://packagist.org/packages/yasser-elgammal/laravel-egypt-national-id-parser)[ RSS](/packages/yasser-elgammal-laravel-egypt-national-id-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Laravel Egypt National ID Parser
================================

[](#laravel-egypt-national-id-parser)

A Laravel package to parse and validate Egyptian National ID numbers, extracting details such as birth date, gender, and governorate.

📌 Features
----------

[](#-features)

- Validate Egyptian National ID numbers
- Extract birth date, gender, and governorate
- Supports Arabic and English translations

📦 Installation
--------------

[](#-installation)

Require the package via Composer:

```
composer require yasser-elgammal/laravel-egypt-national-id-parser
```

Publish the configuration and translation files:

```
php artisan vendor:publish --tag=laravel-egypt-national-id-parser-config
php artisan vendor:publish --tag=laravel-egypt-national-id-parser-translations
```

⚙️ Configuration
----------------

[](#️-configuration)

The configuration file `config/national-id.php` allows customization of the package settings, including the default language.

🛠 Usage
-------

[](#-usage)

### Validating an ID Number

[](#validating-an-id-number)

```
use YasserElgammal\LaravelEgyptNationalIdParser\Facades\NationalId;

$idNumber = '00000000000000';
$result = NationalId::validate($idNumber);
```

You can Also Customize returned lang, default lang is 'english':

```
$result = NationalId::setLanguage('ar')->validate($idNumber)
```

Example:

```
return response()->json([
    'status' => $result['status'],
    'message' => $result['status'] ? 'Valid ID' : 'Invalid ID',
    'data' => $result['data'] ?? null,
    'errors' => $result['errors'] ?? []
]);
```

📝 License
---------

[](#-license)

This package is open-source and licensed under the [MIT License](LICENSE.md).

🙌 Contributions
---------------

[](#-contributions)

Contributions are welcome! Feel free to submit a pull request or report issues.

📬 Contact
---------

[](#-contact)

For any questions, reach out via GitHub Issues or contact me directly.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance44

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

441d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd677b48e144f6f9b0c90bb236b60e721212c3d74a4e2226fb93c4cac7475260?d=identicon)[YasserElgammal](/maintainers/YasserElgammal)

---

Top Contributors

[![YasserElgammal](https://avatars.githubusercontent.com/u/35766609?v=4)](https://github.com/YasserElgammal "YasserElgammal (7 commits)")

### Embed Badge

![Health badge](/badges/yasser-elgammal-laravel-egypt-national-id-parser/health.svg)

```
[![Health](https://phpackages.com/badges/yasser-elgammal-laravel-egypt-national-id-parser/health.svg)](https://phpackages.com/packages/yasser-elgammal-laravel-egypt-national-id-parser)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
