PHPackages                             sandfoxme/bencode - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. sandfoxme/bencode

Abandoned → [arokettu/bencode](/?search=arokettu%2Fbencode)ArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

sandfoxme/bencode
=================

BitTorrent's Bencode encoder/decoder

4.0.0(3y ago)02.6kMITPHPPHP ^8.1

Since Mar 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/arokettu/bencode-legacy)[ Packagist](https://packagist.org/packages/sandfoxme/bencode)[ Docs](https://sandfox.dev/php/bencode.html)[ RSS](/packages/sandfoxme-bencode/feed)WikiDiscussions master Synced today

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

PHP Bencode Encoder/Decoder
===========================

[](#php-bencode-encoderdecoder)

This is a legacy repo for the `sandfoxme/bencode`

The new package is called `arokettu/bencode`, you can find it here:

Versions
--------

[](#versions)

- 1.0.0–3.0.3: Exactly same package published under both sandfoxme/bencode and arokettu/bencode
- 3.1.0: just installs arokettu/bencode ^3.1
- 4.0.0: installs arokettu/bencode ^4.0 and adds aliases for all classes from `Arokettu\Bencode`to the `SandFox\Bencode` namespace

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 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

Every ~55 days

Recently: every ~95 days

Total

39

Last Release

1298d ago

Major Versions

1.7.3 → 2.7.32021-10-24

2.7.3 → 3.0.32021-10-24

1.x-dev → 2.7.42021-11-30

2.x-dev → 3.1.02022-12-14

3.x-dev → 4.0.02022-12-14

PHP version history (6 changes)1.0.0PHP &gt;= 7.1

1.1.0PHP &gt;= 7.0

1.3.0PHP ^7.0|^8.0

2.0.0PHP ^8.0

1.4.0PHP ^7.0 | ^8.0

3.0.0-alpha1PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/963485?v=4)[Anton Smirnov](/maintainers/arokettu)[@arokettu](https://github.com/arokettu)

---

Top Contributors

[![arokettu](https://avatars.githubusercontent.com/u/963485?v=4)](https://github.com/arokettu "arokettu (384 commits)")

---

Tags

serializetorrentbencodebittorrent

### Embed Badge

![Health badge](/badges/sandfoxme-bencode/health.svg)

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

###  Alternatives

[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k234.9M326](/packages/opis-closure)[arokettu/bencode

BitTorrent's Bencode encoder/decoder

2818.5k8](/packages/arokettu-bencode)[zumba/json-serializer

Serialize PHP variables, including objects, in JSON format. Support to unserialize it too.

130784.7k16](/packages/zumba-json-serializer)[rych/bencode

Bencode serializer for PHP 5.3+

3122.6k1](/packages/rych-bencode)[rhilip/bencode

A pure and simple PHP library for encoding and decoding Bencode data

4225.2k2](/packages/rhilip-bencode)[pmjones/throwable-properties

Copies properties of a Throwable to a serializable object.

1557.9k2](/packages/pmjones-throwable-properties)

PHPackages © 2026

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