laranex/laravel-myanmar-nrc

A Laravel package to deal with NRC from Myanmar
4,703 4
Install
composer require laranex/laravel-myanmar-nrc
Latest Version:v2.0.0
PHP:^8.0.2
Laravel:9 · 10 · 11
License:MIT
Last Updated:Oct 13, 2026
Links: GitHub  ·  Packagist
Maintainer: NayThuKhant

LARAVEL MYANMAR NRC

Latest Version on Packagist Total Downloads

A Laravel package to deal with NRC from Myanmar.

Installation

You can install the package via composer:

composer require Laranex/laravel-myanmar-nrc

#This will create required tables for handing NRC from Myanmar
php artisan migrate

#This will read the nrc data from predefined json file and insert into database
php artisan mm-nrc:seed

Configuration

php artisan vendor:publish --tag="laravel-myanmar-nrc"
Option Description Default Value
locale Locale to be use to parse the NRC en
json_file Path of the predefined json file, you can replace with yours and do not forget to re-run php php artisan mm-nrc:seed after that. nrc.json
db_driven Defines if the application use database or json file to validate and parse the nrc true

Supported Functions

  • Validation of NRC
  • Full set of predefined NRC List (You can replace or override with yours)
  • Multiple language for NRC (Myanmar, English)

NOTE

  • This package use ID based network communication to secure the NRC data & enhance the Validation, Parsing.

  • example format of NRC data from a network request

    • X-X-X-12345
    • Where the very fist X represents the ID of the STATE in database/json, the second X is for TOWNSHIP and the last is for TYPE of the NRC.

Usage


    //Validation
    new \Laranex\LaravelMyanmarNRC\Rules\MyanmarNRC()
    
    //Parsing the NRC from network
    \Laranex\LaravelMyanmarNRC\LaravelMyanmarNrcFacade::parseNRC($nrc, $dbDriven, $lang)
        (OR)
    \Laranex\LaravelMyanmarNRC\LaravelMyanmarNrc::parseNRC($nrc, $dbDriven, $lang)
    
    
    //$nrc represents the nrc (X-X-X-12345) from network,
    //$drDriven defines if the application use database or predefined json file to parse, validate the nrc and,
    //$lang is for the Languages (mm and en are supported) to be used in parsing.

    //default values for $dbDriven & $lang will be read from config file if you do not pass the values to the method.

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email naythukhant644@gmail.com instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

Related Packages

skysplit/laravel5-intl-translation

Laravel 5 package for better translation syntax using php-intl extension

107,504 10
propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

45,553,865 3,041
prettus/laravel-validation

Laravel Validation Service

12,066,821 406
proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rul...

2,488,740 1,140
pixelpeter/laravel5-isocodes-validation

Laravel 5 wrapper for the IsoCodes Validation library from ronanguilloux

88,007 19

Version History

Version Released PHP Laravel License
v2.0.0 ^8.0.2 ^9.0.0||^10.0.0||^11.0.0 MIT
v1.0.7 ^8.0.2 ^9.0.0||^10.0.0 MIT
v1.0.6 ^8.0.2 ^9.0.0 MIT
v1.0.4 ^8.0.2 ^9.0.0 MIT
v1.0.3 ^8.0.2 ^9.0.0 MIT
Pre-releases (5)
Version Released PHP Laravel License
v4.0.0-alpha.8 ^8.1 ^10.0||^11.0||^12.0||^13.0 MIT
v4.0.0-alpha.7 ^8.1 ^10.0||^11.0||^12.0||^13.0 MIT
v4.0.0-alpha.6 ^8.1 ^10.0||^11.0||^12.0||^13.0 MIT
v4.0.0-alpha.2 ^8.1 ^10.0||^11.0||^12.0||^13.0 MIT
v4.0.0-alpha.1 ^8.1 ^10.0||^11.0||^12.0||^13.0 MIT