Download the PHP package marjovanlier/southafricanidvalidator without Composer

On this page you can find all versions of the php package marjovanlier/southafricanidvalidator. 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 southafricanidvalidator

South African ID Validator

Table of Contents

Introduction

The SouthAfricanIDValidator PHP package is your comprehensive solution for validating South African ID numbers, crucial for any application processing or verifying South African identities. Validation of ID numbers is essential, as it ensures that IDs adhere to both specific structural and contextual standards outlined in South African identity documentation. This package stands out for its ease of use, high accuracy, and thorough validation checks, including structure and format validation, birth date verification, gender, citizenship status, and race indicator digits, and applying the Luhn algorithm for checksum digit validation.

Badges

Packagist Version Packagist Downloads Packagist License PHP from Packagist Latest Stable Version PHPStan Enabled Phan Enabled Psalm Enabled codecov Qodana

Features

System Requirements

Installation

Getting Started

To begin using the SouthAfricanIDValidator in your project, follow these simple steps:

  1. Install via Composer - Run the following command to install the package:

  2. Basic Usage Example - After installation, you can start validating South African ID numbers with the following code snippet:

To integrate the SouthAfricanIDValidator into your project, install it via Composer:

Usage

To validate a South African ID number, instantiate the SouthAfricanIDValidator class and call the luhnIDValidate method:

The luhnIDValidate method returns true if the ID number is valid, false if it's invalid, and null if specific criteria aren't met (e.g., incorrect citizenship status digit).

Troubleshooting

Encountering issues? Here are solutions to some common problems:

For additional help or to report a new issue, please visit our GitHub issue tracker.

Testing

First, ensure you have all the necessary development dependencies installed by running composer install --dev. Then, run the following command to execute the unit tests included with the package:

Contributing

We value your contributions to the SouthAfricanIDValidator package! Here's how you can help:

  1. Report Issues or Suggest Enhancements - Noticed a bug or have an idea to make the package better? Start by filing an issue on our GitHub repo. This lets us discuss possible changes before you start coding.

  2. Contribute Code - Fork the repo, then create a new branch for your work, adhering to our branching strategy guidelines. This keeps things organised and ensures consistency across contributions.

  3. Follow Our Coding Standards - Write clean, readable code that adheres to our coding standards. This makes it easier for everyone to understand and maintain.

  4. Write or Update Tests - Help ensure reliability by writing tests for new features or updating existing tests as needed.

  5. Submit a Pull Request - Finished making changes? Open a pull request against the main branch with a detailed explanation of what you did and why.

Your contributions are crucial to improving the SouthAfricanIDValidator package for everyone!

License Information

The SouthAfricanIDValidator is proudly open-sourced under the MIT Licence. This licence allows you to use, modify, distribute and contribute back to the package, both in private and commercial projects, but you must include the original copyright and license notice in any copy of the software. For full details about your rights and obligations, refer to the License File.

Release Notes

Stay updated by checking our GitHub Releases page.


All versions of southafricanidvalidator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
marjovanlier/stringmanipulation Version ^1.0.79
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 marjovanlier/southafricanidvalidator contains the following files

Loading the files please wait ....