PHPackages                             pbarabadze/geo-phone-number - 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. pbarabadze/geo-phone-number

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

pbarabadze/geo-phone-number
===========================

A Laravel library for parsing, formatting, and validating Georgian phone numbers.

v1.0.9(5mo ago)046↓75%MITPHPPHP &gt;=7.3

Since May 13Pushed 4mo ago1 watchersCompare

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

READMEChangelogDependenciesVersions (9)Used By (0)

GeoPhoneNumber
==============

[](#geophonenumber)

GeoPhoneNumber is a PHP package that helps you determine the provider (Magti, Silknet, Cellfie) for a given phone number in Georgia. The package normalizes, parses, and formats phone numbers, and it can check if the number belongs to a specific provider.

Features
--------

[](#features)

- Normalize phone numbers by removing non-numeric characters and ensuring the country code.
- Parse phone numbers to extract parts (`main` (6-digit national format) and `full` 12 digit, international format).
- Determine the phone number provider (`Magti`, `Silknet`, or `Cellfie`).
- Format phone numbers in different styles (`international (e164)`, and `national (6-digit)`).
- Handle invalid phone numbers and missing providers with clear error messages.

Requirements
------------

[](#requirements)

- `PHP 7.3` or higher

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

[](#installation)

To install GeoPhoneNumber via Composer, run the following command:

```
composer require pbarabadze/geo-phone-number
```

Usage
-----

[](#usage)

Here’s an example of how to use the package:

```
