PHPackages                             davidnsai/numlock - 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. davidnsai/numlock

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

davidnsai/numlock
=================

This a CodeIgniter Library for phone number validation.

v1.0.0(2y ago)17MITPHP

Since Mar 20Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Numlock - A CodeIgniter Phone Number Validation Library
=======================================================

[](#numlock---a-codeigniter-phone-number-validation-library)

What is it?
-----------

[](#what-is-it)

Numlock is a CodeIgniter phone number validation library. This library is based on Google's [\# libphonenumber for PHP](https://github.com/giggsey/libphonenumber-for-php).

Installation
------------

[](#installation)

PHP versions 8.0 to PHP 8.2 are currently supported.

The PECL [mbstring](http://php.net/mbstring) extension is required.

It is recommended to use [composer](https://getcomposer.org) to install the library.

```
$ composer require davidnsai/numlock
```

You can also use any other [PSR-4](http://www.php-fig.org/psr/psr-4/) compliant autoloader.

Usage
-----

[](#usage)

For use in CodeIgniter projects, open the `app/Config/Validation.php` file and modify your code to look like the following code:

```
