Download the PHP package samsonkwiz/idobfuscator without Composer
On this page you can find all versions of the php package samsonkwiz/idobfuscator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download samsonkwiz/idobfuscator
More information about samsonkwiz/idobfuscator
Files in samsonkwiz/idobfuscator
Package idobfuscator
Short Description Reversible numeric ID obfuscation for PHP using BCMath
License MIT
Informations about the package idobfuscator
IDObfuscator for PHP
Secure, reversible numeric ID obfuscation for PHP using BCMath.
IDObfuscator lets you:
- Generate unpredictable numbers for tokens, card numbers, and references.
- Mask your database auto-increment IDs with deterministic, non-sequential values.
- Protect sensitive numeric identifiers in URLs, APIs, and logs.
Thanks to BCMath, it handles arbitrarily large integers and guarantees exact round-trip encoding/decoding.
Requirements
- PHP 7.0 or higher
- BCMath extension (ext-bcmath)
Installation
Install via Composer (recommended):
Other installation methods
1. Clone the repository and install dependencies
2. Download ZIP
- Go to https://github.com/samsonkwiz/idobfuscator
- Click "Code" → "Download ZIP", extract the archive
- Ensure Composer autoloader is available or include source files manually
3. Git submodule
Then update your project's composer.json autoload section:
Run:
4. Packagist
The package is now available on Packagist. Simply run:
Usage## Usage
-
Include Composer’s autoloader
-
Import the class
-
Instantiate and encode/decode IDs
A. Using instance methods
B. Using static helper methods
- Customize salt, key, and output length (optional)
Contributing
Contributions are welcome! Please fork the repository and open a pull request.
License
This library is released under the MIT License.
All versions of idobfuscator with dependencies
ext-bcmath Version *