PHPackages                             katoni/php-ffx - 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. [Security](/categories/security)
4. /
5. katoni/php-ffx

ActiveLibrary[Security](/categories/security)

katoni/php-ffx
==============

A pure PHP implementation of Format-preserving, Feistel-based encryption (FFX).

v1.0(3y ago)632.9k↓30%31MITPHPPHP ^7.3 || ^8.0

Since Mar 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/katoni/php-ffx)[ Packagist](https://packagist.org/packages/katoni/php-ffx)[ Docs](https://github.com/katoni/php-ffx)[ RSS](/packages/katoni-php-ffx/feed)WikiDiscussions master Synced 1mo ago

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

A pure PHP implementation of Format-preserving, Feistel-based encryption (FFX).

Ported from [emulbreh/pyffx](https://github.com/emulbreh/pyffx).

Usage
=====

[](#usage)

```
$key = 'hello';
$alphabet = 'abcdefghijklmnopqrstuvwxyz';

$ffx = new \Katoni\FFX\Codecs\Text($key, $alphabet, 10);
$ffx->encrypt('encryption'); // string: jrsunxgmbq

$ffx = new \Katoni\FFX\Codecs\Integer($key, 4);
$ffx->encrypt('1234'); // int: 1867
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

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

1149d ago

### Community

Maintainers

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

---

Top Contributors

[![mpskovvang](https://avatars.githubusercontent.com/u/7034075?v=4)](https://github.com/mpskovvang "mpskovvang (16 commits)")

---

Tags

encryptionffxfpephpencryptionffxfpekatoniphp-ffx

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/katoni-php-ffx/health.svg)

```
[![Health](https://phpackages.com/badges/katoni-php-ffx/health.svg)](https://phpackages.com/packages/katoni-php-ffx)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[paragonie/ciphersweet

Searchable field-level encryption library for relational databases

4641.2M21](/packages/paragonie-ciphersweet)[ass/xmlsecurity

The XmlSecurity library is written in PHP for working with XML Encryption and Signatures

955.6M30](/packages/ass-xmlsecurity)[pear/crypt_gpg

Provides an object oriented interface to the GNU Privacy Guard (GnuPG). It requires the GnuPG executable to be on the system.

954.4M10](/packages/pear-crypt-gpg)[nzo/url-encryptor-bundle

The NzoUrlEncryptorBundle is a Symfony Bundle used to Encrypt and Decrypt data and variables in the Web application or passed through URL

961.0M2](/packages/nzo-url-encryptor-bundle)

PHPackages © 2026

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