PHPackages                             felixdorn/php-rc4 - 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. felixdorn/php-rc4

ActiveLibrary[Security](/categories/security)

felixdorn/php-rc4
=================

 RC4/ARC4 encryption/decryption library for PHP.

0.1.0(2y ago)082↓100%MITPHPPHP ^8.3

Since Mar 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/felixdorn/php-rc4)[ Packagist](https://packagist.org/packages/felixdorn/php-rc4)[ RSS](/packages/felixdorn-php-rc4/feed)WikiDiscussions main Synced 1mo ago

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

RC4/ARC4 encryption/decryption library for PHP.
===============================================

[](#rc4arc4-encryptiondecryption-library-for-php)

[![Tests](https://github.com/felixdorn/php-rc4/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/felixdorn/php-rc4/actions/workflows/tests.yml)[![Formats](https://github.com/felixdorn/php-rc4/actions/workflows/formats.yml/badge.svg?branch=main)](https://github.com/felixdorn/php-rc4/actions/workflows/formats.yml)[![Version](https://camo.githubusercontent.com/d8524ad2ce242e5cee0099d81860d9188130be0c13b9edadff30509787e87712/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f7068702d7263342f76657273696f6e)](//packagist.org/packages/felixdorn/php-rc4)[![Total Downloads](https://camo.githubusercontent.com/04c9f4f724a5103fb45813dc88bcffa8e6e06ff4292ccb2539ea984364f4af37/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f7068702d7263342f646f776e6c6f616473)](//packagist.org/packages/felixdorn/php-rc4)[![License](https://camo.githubusercontent.com/85fa62bcbb306c7847229a480dbd8da24d5bb14352d17a0b004f066bcedee4be/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f7068702d7263342f6c6963656e7365)](//packagist.org/packages/felixdorn/php-rc4)

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

[](#installation)

> Requires [PHP 8.3+](https://php.net/releases)

You can install the package via composer:

```
composer require felixdorn/php-rc4
```

Usage
-----

[](#usage)

```
$encrypted = \Felix\RC4\RC4::rc4('key', 'data')
$decrypted = \Felix\RC4\RC4::rc4('key', $encrypted);
```

In tests

```
\Felix\RC4\RC4::fake(function ($key, $data) {
    // Fake it if you need to for some reason.
});
```

Helpers

```
rc4('key', 'data'); // calls RC4::rc4

// Or, to be semantic:
$encrypted = rc4_encrypt('key', 'data');
$decrypted = rc4_decrypt('key', 'data');
// But both call rc4() under the hood
```

Testing
-------

[](#testing)

```
composer test
```

**php-rc4** was created by **[Félix Dorn](https://felixdorn.fr)** under the **[MIT license](https://opensource.org/licenses/MIT)**.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

779d ago

### Community

Maintainers

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

---

Top Contributors

[![felixdorn](https://avatars.githubusercontent.com/u/55788595?v=4)](https://github.com/felixdorn "felixdorn (1 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/felixdorn-php-rc4/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M212](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M112](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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