PHPackages                             snappdoctor/drcoder - 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. snappdoctor/drcoder

ActiveLibrary

snappdoctor/drcoder
===================

1.0.3(5y ago)1111MITPHP

Since Jan 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/SnappDoctor/drcoder)[ Packagist](https://packagist.org/packages/snappdoctor/drcoder)[ RSS](/packages/snappdoctor-drcoder/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)DependenciesVersions (6)Used By (0)

[![](https://camo.githubusercontent.com/fb030b75f9fffcdeddc0ca433ad233ed042c87abbc2d0af94943ba0e25361c2c/68747470733a2f2f736e6170702e646f63746f722f7374617469632f6d656469612f736e61705f6865616465722e38316464613737372e706e67)](https://snapp.doctor)

[![Total Downloads](https://camo.githubusercontent.com/f3dae887964ab63bd0fcfff9c8d2132a12b6c2c9ece9438d05e2c68550cf023f/68747470733a2f2f706f7365722e707567782e6f72672f736e617070646f63746f722f6472636f6465722f642f746f74616c2e737667)](https://packagist.org/packages/snappdoctor/drcoder)[![Latest Stable Version](https://camo.githubusercontent.com/28dfe7d7de1bad756255551a4e6fcda02489fe6121146a7f063c10984c003c77/68747470733a2f2f706f7365722e707567782e6f72672f736e617070646f63746f722f6472636f6465722f762f737461626c652e737667)](https://packagist.org/packages/snappdoctor/drcoder)[![License](https://camo.githubusercontent.com/596a70d558bfcd51f820e713c8fdbfbd523ee02def842c4a476c046ff7840854/68747470733a2f2f706f7365722e707567782e6f72672f736e617070646f63746f722f6472636f6465722f6c6963656e73652e737667)](https://packagist.org/packages/snappdoctor/drcoder)[![License](https://camo.githubusercontent.com/3627b12d5119d8e955f58931a0240933ecc064ec96af29936c486c3572e9e49f/68747470733a2f2f706f7365722e707567782e6f72672f736e617070646f63746f722f6472636f6465722f636f6d706f7365726c6f636b)](https://packagist.org/packages/snappdoctor/drcoder)

SnappDoctor Encoder package
===========================

[](#snappdoctor-encoder-package)

This package handle and encode/decode any data. The package provide some drivers to encode/decode the data that will explain below.

Installation.
-------------

[](#installation)

Before anything, The developer has to know witch Encoder class uses the built-in hash functions to do the process, so according to your PHP version you have to configure appropriate hashing drivers in your setup; for now we assume that you use version `< 7.0` of PHP, otherwise you have to manually enable the `mcrypt` extension basic on your current version.

install via composer:

```
$ composer require snappdoctor/drcoder
```

then use this command if needed:

```
$ php artisan vendor:publish
```

The package use env variables that encode/decode process need it to work, so you have to add these variables to your `.env` file:

```
ENCODER_SERVICE_IV=SECRET_IV
ENCODER_SERVICE_KEY=SECRET_KEY
ENCODER_SERVICE_MODE=SECRET_MODE
ENCODER_SERVICE_SIGN=SECRET_SIGN
ENCODER_SERVICE_BLOCK_SIZE=BLOCK_SIZE
```

finall, register your package service provider into `config/app.php` providers array.

How it works?
-------------

[](#how-it-works)

first , call the service:

```
use DrCoder\EncoderService;
```

for encoding:

```
$first = "encode_me_1";
$second = "encode_me_2";

$base64_encoded_array = EncoderService::driver(EncoderService::DRIVER_BASE64)
                               ->encode([$first, $second]);

$first_base64_encoded =  $base64_encoded_array[0];
$second_base64_encoded =  $base64_encoded_array[1];

$aes_encoded_array = EncoderService::driver(EncoderService::DRIVER_AES_SSL)
                               ->encode([$first, $second]);

$first_aes_encoded =  $aes_encoded_array[0];
$second_aes_encoded =  $aes_encoded_array[1];
```

for decoding:

```
$first = "decode_me_1";
$second = "decode_me_2";

$base64_decoded_array = EncoderService::driver(EncoderService::DRIVER_BASE64)
                               ->decode([$first, $second]);

$first_base64_decoded =  $base64_decoded_array[0];
$second_base64_decoded =  $base64_decoded_array[1];

$aes_decoded_array = EncoderService::driver(EncoderService::DRIVER_BASE64)
                               ->decode([$first, $second]);

$first_aes_decoded =  $aes_decoded_array[0];
$second_aes_decoded =  $aes_decoded_array[1];
```

you can also use associative arrays and get the response with same index keys. More example file placed in [here](Examples) to get better details of this package.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~0 days

Total

4

Last Release

1959d ago

### Community

Maintainers

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

---

Top Contributors

[![ajangi](https://avatars.githubusercontent.com/u/18447056?v=4)](https://github.com/ajangi "ajangi (23 commits)")[![heismehrab](https://avatars.githubusercontent.com/u/40082310?v=4)](https://github.com/heismehrab "heismehrab (23 commits)")

### Embed Badge

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

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

PHPackages © 2026

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