PHPackages                             caesarcipher/caesarcipher - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. caesarcipher/caesarcipher

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

caesarcipher/caesarcipher
=========================

A PHP package for encoding, decoding and cracking the Caesar shift cipher

1.0.0(11y ago)31.3k2MITPHPPHP &gt;=5.3.0

Since Oct 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/rickyrobinett/CaesarCipher)[ Packagist](https://packagist.org/packages/caesarcipher/caesarcipher)[ Docs](https://github.com/rickyrobinett/CaesarCipher)[ RSS](/packages/caesarcipher-caesarcipher/feed)WikiDiscussions master Synced today

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

Caesar Cipher
=============

[](#caesar-cipher)

A PHP Port of Rob Spectre's [Python Caesar Cipher library](https://github.com/RobSpectre/Caesar-Cipher). Encode, decode and crack messages with [Caesar Shift Cipher](http://www.wikiwand.com/en/Caesar_cipher).

[![Build Status](https://camo.githubusercontent.com/b935a2ea1fb513a310e445649bc19ac72b72bf6938eb63f43f2e84825c8eab1a/68747470733a2f2f7472617669732d63692e6f72672f7269636b79726f62696e6574742f4361657361724369706865722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rickyrobinett/CaesarCipher)[![Coverage Status](https://camo.githubusercontent.com/152d952c0b045f33270f0397a3ac0f68496d1051300f0ea2990cac67957fee0a/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f7269636b79726f62696e6574742f4361657361724369706865722e737667)](https://coveralls.io/r/rickyrobinett/CaesarCipher?branch=master)[![Total Downloads](https://camo.githubusercontent.com/e14363973bfebd3d26985dc42ba1c9437a9e2d57f55a713bf038ca15837d7295/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361657361726369706865722f6361657361726369706865722e737667)](https://packagist.org/packages/caesarcipher/caesarcipher)

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

[](#installation)

You can install this library using composer

```
composer require caesarcipher/caesarcipher
```

Usage
-----

[](#usage)

Encoding a message with an offset:

```
$cipher = new CaesarCipher();
$message = "Brooklyn";
$cipher->encode($message,5);
```

Decoding a ciphertext with an offset:

```
$cipher = new CaesarCipher();
$message = "Uxjmjp";
$cipher->decode($message,5);
```

Cracking a ciphertext without knowing the offset:

```
$cipher = new CaesarCipher();
$cipher_text = "Bj qfhp ymj rtynts yt rtaj yt ymj sjb gjfy!";
$crack_text = $cipher->crack($cipher_text);
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

4289d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/838096?v=4)[Ricky Robinett](/maintainers/rickyrobinett)[@rickyrobinett](https://github.com/rickyrobinett)

---

Top Contributors

[![rickyrobinett](https://avatars.githubusercontent.com/u/838096?v=4)](https://github.com/rickyrobinett "rickyrobinett (10 commits)")

---

Tags

cipherCaesar cipher

### Embed Badge

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

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

###  Alternatives

[kunstmaan/utilities-bundle

The KunstmaanUtilitiesBundle makes your life easier by providing a couple of small but usefull helper services you can use and re-use in your applications. We already implemented an easy to use cipher service and a shell helper service for you but feel free to send in a pull request with your additions. The shell helper allows you to run apps in the background, see if a process is running and has a method to kill a running process. The cipher service allow you to encode and decode strings using the Rijndael 256 cipher

13152.7k6](/packages/kunstmaan-utilities-bundle)[glowy/strings

Strings Component provide a fluent, object-oriented interface for working with multibyte string, allowing you to chain multiple string operations together using a more readable syntax compared to traditional PHP strings functions.

183.4k2](/packages/glowy-strings)

PHPackages © 2026

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