Download the PHP package ngarak-dev/nida-parse without Composer

On this page you can find all versions of the php package ngarak-dev/nida-parse. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nida-parse

NIDA Parse

A Laravel package that attempts to reverse engineer how NIDA (National Identification Authority) numbers are generated and extract basic information from National Identification Numbers (NIN) without using the official NIDA API.

This is a fork of the Python implementation: reverse_nida

โš ๏ธ Disclaimer

This project is for educational and research purposes only. It attempts to understand the structure and patterns in NIDA numbers through reverse engineering. The accuracy of extracted information is not guaranteed, and this should not be used for official verification purposes.

๐Ÿš€ Installation

Requirements

Install via Composer

Publish Configuration and Assets

Publish the configuration file:

Publish the CSV location files to storage:

Or publish both at once:

๐Ÿ“– Usage

Using the Helper Function

Using the Service Classes Directly

Using Dependency Injection

๐Ÿ”ง Configuration

After publishing the configuration file, you can customize the package behavior in config/nida-parse.php:

How Location Lookup Works

The package uses a smart lookup strategy:

  1. Combined File (Preferred): If tanzania_locations_combined.csv exists in storage/app/ (after publishing), it will be used first for faster lookups.
  2. Individual Files (Fallback): If the combined file is not found or doesn't contain the ward code, the package falls back to individual region CSV files (11.csv, 21.csv, etc.).

The combined file is automatically published when you run:

You can also override the CSV directory or combined file path when instantiating LocationLookup:

๐Ÿ“ NIN Format

The package supports two NIN formats:

  1. Dashed format: YYYYMMDD-LLLLL-SSSSS-XX

    • Example: 19990504-35710-00001-28
  2. Compact format: YYYYMMDDWWWWWSSSSSXX
    • Example: 19990504357100000128

Where:

๐Ÿ“ Package Structure

๐Ÿงช Testing

๐Ÿ“„ License

MIT

๐Ÿ™ Credits

๐Ÿ”— Links


All versions of nida-parse with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ngarak-dev/nida-parse contains the following files

Loading the files please wait ...