PHPackages                             turahe/number-validator - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. turahe/number-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

turahe/number-validator
=======================

identification number validator

v1.0.0(9mo ago)027MITPHPPHP ^8.4CI failing

Since Aug 7Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/turahe/number-validator)[ Packagist](https://packagist.org/packages/turahe/number-validator)[ RSS](/packages/turahe-number-validator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Number Validator
================

[](#number-validator)

[![PHP Version](https://camo.githubusercontent.com/d99323f769f72040b693c48a2dfaa9b767bae7f8dc307ac17c678e033fe4bdd8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342b2d626c75652e737667)](https://php.net)[![License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![Tests](https://camo.githubusercontent.com/3ea28a5c86c5ab00e29f47fa4bfe21923c02ac926cabb0bd411b5e3ba6d4037f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54657374732d36332532307061737365642d627269676874677265656e2e737667)](https://github.com/turahe/number-validator)[![Performance](https://camo.githubusercontent.com/695a6ca72eb2a84eaa7c3500a178156a7a2b5c550bbc33ffce259067b208c5d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506572666f726d616e63652d4f7074696d697a65642d6f72616e67652e737667)](https://github.com/turahe/number-validator)[![Coverage](https://camo.githubusercontent.com/f751cf9ce74c566617800f7e88d9896e9bd6e07fad747e3144ae9ef03e880788/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f7665726167652d3130302532352d627269676874677265656e2e737667)](https://github.com/turahe/number-validator)

A high-performance PHP package for validating and parsing Indonesian identity numbers (NIK and KK) with PHP 8.4 features and optimized performance.

🚀 Features
----------

[](#-features)

- **NIK (Nomor Induk Kependudukan)** validation and parsing
- **KK (Kartu Keluarga)** validation and parsing
- **PHP 8.4** optimized with modern features
- **High Performance** with intelligent caching
- **Offline Operation** - no internet connection required
- **Comprehensive Data** - age, gender, zodiac, address, postal code
- **Type Safety** with strict type declarations
- **Error Handling** with detailed validation messages

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

[](#-installation)

```
composer require turahe/number-validator
```

🎯 Quick Start
-------------

[](#-quick-start)

### NIK Validation

[](#nik-validation)

```
