PHPackages                             restugbk/get-contact - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. restugbk/get-contact

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

restugbk/get-contact
====================

PHP Class for fetching GetContact phone number tags (Unofficial)

v1.0.0(4mo ago)21326MITPHPPHP &gt;=7.4

Since Jan 9Pushed 3mo agoCompare

[ Source](https://github.com/restugbk/get-contact)[ Packagist](https://packagist.org/packages/restugbk/get-contact)[ RSS](/packages/restugbk-get-contact/feed)WikiDiscussions master Synced 1mo ago

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

GetContact API
==============

[](#getcontact-api)

[![PHP Version](https://camo.githubusercontent.com/2ae89250e51f8a81b52e54661329cf4ef9bd8c05352c16875da05ff1a1e94776/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344372e342d3737376262343f6c6f676f3d706870)](https://www.php.net/)[![License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)[![Open Source Love svg1](https://camo.githubusercontent.com/a8a6219cf0313b681948382bcbcc27a34ae00572d463437bd92ebb1df58647c9/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f76312f6f70656e2d736f757263652e7376673f763d313033)](https://github.com/restugbk/qris-interactive)

**\[Un-Official\]** A lightweight, Un-Official PHP Library for validating phone numbers and retrieving tags from the GetContact API. Designed to be framework-agnostic, efficient, and easy to integrate.

---

⚡ Get Contact Demo
------------------

[](#-get-contact-demo)

An interactive demo site for contact information lookup and phone number identification services.

Live Demo: [Visit Get Contact Demo](http://rfpdev.me/get-contact)

---

📦 Installation
--------------

[](#-installation)

Install the package via [Composer](https://getcomposer.org/):

```
composer require restugbk/get-contact
```

1. Basic Initialization
-----------------------

[](#1-basic-initialization)

```
use Restugbk\GetContact;

$token    = 'YOUR_TOKEN';
$finalKey = 'YOUR_FINAL_KEY';

$getContact = new GetContact($token, $finalKey);
```

2. Validate Number of Tags
--------------------------

[](#2-validate-number-of-tags)

```
$number = '081234567890';

$response = $getContact->checkNumber($number);

if ($response['success']) {
    echo "Validated Number: " . $response['number'] . "\n";
    echo "Tags: " . implode(', ', $response['tags']) . "\n";
} else {
    echo "Error: " . $response['message'] . "\n";
}
```

3. Search Profile by Validated Number
-------------------------------------

[](#3-search-profile-by-validated-number)

```
$number = '081234567890';

$response = $getContact->searchNumber($number);

if ($response['success']) {
    echo "Validated Number: " . $response['number'] . "\n";
    echo "Profile: " . implode(', ', $response['profile']) . "\n";
} else {
    echo "Error: " . $response['message'] . "\n";
}
```

📋 Data Structure Reference
--------------------------

[](#-data-structure-reference)

The `checkNumber()` method returns an array with the following keys:

KeyTypeDescription`success`**Boolean**Indicates whether the request was successful.`number`**String**Normalized phone number (e.g., `+6281234567890`).`tags`**Array**List of tags associated with the number.`raw`**Array**Full raw response from the API (decrypted JSON).🔑 How to Get Token
------------------

[](#-how-to-get-token)

**Requirements**: Android with ROOT-rights (or emulator).

1. Install and login into **GetContact** app.
2. Open file manager on your phone and navigate to: ```
    /data/data/app.source.getcontact/shared_prefs/GetContactSettingsPref.xml
    ```
3. Inside the file, you will find: ```
    YOUR_TOKEN = TOKEN / CHAT_TOKEN
    YOUR_FINAL_KEY = FINAL_KEY
    ```

⚠️ Note
-------

[](#️-note)

If **TOKEN**, **CHAT\_TOKEN**, or **FINAL\_KEY** are missing.

Try updating the **GetContact** app to the latest version and log in with your account. Perform a search to trigger the CAPTCHA. This CAPTCHA cannot be bypassed using this repository due to technical limitations. After solving the CAPTCHA and confirming that the account can fetch **Tags**, you can downgrade the app to version **6.0.0**. Follow the steps above to resolve the issue.

📄 License
---------

[](#-license)

This open-source software is distributed under the MIT License. See LICENSE for more information.

🛠 Support
---------

[](#-support)

If you found this project helpful, please give it a ⭐ star!

For issues and questions, please create an issue in the GitHub repository.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance80

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

129d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/979b10b38564971cc525f85fc1b473ded4e9738b9c27d6158b7f03acb170d0cf?d=identicon)[restugbk](/maintainers/restugbk)

---

Top Contributors

[![restugbk](https://avatars.githubusercontent.com/u/69737152?v=4)](https://github.com/restugbk "restugbk (7 commits)")[![I-CoderTeam](https://avatars.githubusercontent.com/u/32434111?v=4)](https://github.com/I-CoderTeam "I-CoderTeam (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/restugbk-get-contact/health.svg)

```
[![Health](https://phpackages.com/badges/restugbk-get-contact/health.svg)](https://phpackages.com/packages/restugbk-get-contact)
```

###  Alternatives

[ideup/simple-paginator-bundle

Symfony 2 paginator bundle.

3423.1k](/packages/ideup-simple-paginator-bundle)[phpbu/phpbu-laravel

Laravel backup package - integrates phpbu with the laravel artisan command line tool

196.1k](/packages/phpbu-phpbu-laravel)[gipetto/cowsay

An extensible PHP port of the Cowsay linux utility

106.6k](/packages/gipetto-cowsay)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
