PHPackages                             kamerk22/ipfuscator - 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. kamerk22/ipfuscator

ActiveLibrary

kamerk22/ipfuscator
===================

IPFuscation is a technique that allows for IP addresses to be represented in hexadecimal or decimal instead of the decimal encoding we are used to. IPFuscator allows us to easily convert to these alternative formats that are interpreted in the same way.

v1.0.0(7y ago)1572MITPHPPHP &gt;=7.1CI failing

Since Dec 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/kamerk22/ipfuscator)[ Packagist](https://packagist.org/packages/kamerk22/ipfuscator)[ Docs](https://github.com/kamerk22/amazongiftcode)[ RSS](/packages/kamerk22-ipfuscator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

IPFuscator
==========

[](#ipfuscator)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/43e818f56689fd035b4041a5bb40b1c33cd1f92c99b8d0045cf095c0c096b080/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b616d65726b32322f69706675736361746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kamerk22/ipfuscator/?branch=master)[![Build Status](https://camo.githubusercontent.com/d7ed43ba6629fec2586240c2232aa5c2d3116c80429404aa85554bd71646ca2f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f6b616d65726b32322f69706675736361746f722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/kamerk22/ipfuscator)[![Code Coverage](https://camo.githubusercontent.com/2d6f46f76cd88fd13ce2d9c6e0fb7ff4e7156624251118c4943ce10acb37ec11/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b616d65726b32322f69706675736361746f722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kamerk22/ipfuscator/?branch=master)[![Code Intelligence Status](https://camo.githubusercontent.com/3a6189f3437b2218e43dd722249d0e64e9eb6aefcb750d402f6bf46baf53e7dc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b616d65726b32322f69706675736361746f722f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)[![Latest Version on Packagist](https://camo.githubusercontent.com/807fbc8ab635097b65c4ea9b347868bba2e7040660d1387f9e0acb37a7d5a46a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b616d65726b32322f69706675736361746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kamerk22/ipfuscator)[![Total Downloads](https://camo.githubusercontent.com/73c84192571ccf48b0bc41c8b3f8728fc2e8206d6da9e1c238b6834e42219e96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b616d65726b32322f69706675736361746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kamerk22/ipfuscator)

IPFuscation is a technique that allows for IP addresses to be represented in hexadecimal or decimal instead of the decimal encoding we are used to.

This package will provide simple and easy API convert IP to alternative formats that are interpreted in the same way.

Inspired by  in Python.

[![SS](https://camo.githubusercontent.com/8005a53866b9498093935e1208a7027e05f4638fa1ff34a0d184273cad68b2dc/68747470733a2f2f692e696d6775722e636f6d2f5839597a35456b2e706e67)](https://camo.githubusercontent.com/8005a53866b9498093935e1208a7027e05f4638fa1ff34a0d184273cad68b2dc/68747470733a2f2f692e696d6775722e636f6d2f5839597a35456b2e706e67)

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

[](#installation)

You can install this package via Composer.

```
$ composer require kamerk22/ipfuscator
```

Usage
-----

[](#usage)

```
use kamerk22\IPFuscator\IPFuscator;
```

### Get Decimal

[](#get-decimal)

```
IPFuscator::getDecimal($ip);
```

### Get Octal

[](#get-octal)

```
IPFuscator::getOctal($ip);
```

### Get Hexadecimal

[](#get-hexadecimal)

```
IPFuscator::getHexadecimal($ip);
```

### Get Full Octal

[](#get-full-octal)

```
IPFuscator::getFullOct($ip);
```

### Get Full Hexadecimal

[](#get-full-hexadecimal)

```
IPFuscator::getFullHex($ip);
```

### Get Random Pad Octal

[](#get-random-pad-octal)

```
IPFuscator::getRandomOctPad($ip);
```

### Get Random Pad Hexadecimal

[](#get-random-pad-hexadecimal)

```
IPFuscator::getRandomHexPad($ip);
```

### Get Random Base

[](#get-random-base)

```
IPFuscator::getRandomBase($ip);
```

### Get Random Base With Random Pad

[](#get-random-base-with-random-pad)

```
IPFuscator::getRandomBaseWithRandomPad($ip);
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Kashyap Merai](https://github.com/kamerk22)
- [All Contributors](../../contributors%5D)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

2708d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ebd0b84fba30d7ee1e7f244420c4dea18fdf9b1250b87600615b30cff604f066?d=identicon)[kamerk22](/maintainers/kamerk22)

---

Top Contributors

[![kamerk22](https://avatars.githubusercontent.com/u/11503211?v=4)](https://github.com/kamerk22 "kamerk22 (15 commits)")

---

Tags

composerfuscatoripnetworkpackagephpphpobfuscateIPobfuscatorIPFuscatorIP obfuscator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kamerk22-ipfuscator/health.svg)

```
[![Health](https://phpackages.com/badges/kamerk22-ipfuscator/health.svg)](https://phpackages.com/packages/kamerk22-ipfuscator)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)[pmaslak/php-obfuscator

PHP obfuscator

222.6k](/packages/pmaslak-php-obfuscator)

PHPackages © 2026

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