PHPackages                             oleander29/decrypt - 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. [Database &amp; ORM](/categories/database)
4. /
5. oleander29/decrypt

ActiveLaravel-package[Database &amp; ORM](/categories/database)

oleander29/decrypt
==================

Laravel package to decrypt an Eloquent model or collection based on a variable set in the model class

025PHP

Since Feb 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/coleander/Decrypt)[ Packagist](https://packagist.org/packages/oleander29/decrypt)[ RSS](/packages/oleander29-decrypt/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Decrypt
=======

[](#decrypt)

This is a little laravel package which takes a collection or an Eloquent model and decrypts the fields of either every model in the collection which are defined in the $encryptable variable in your model(read below) or a model depending of what function you use, it returns the model or collection as an array, so it is mostly usable when wanting to return some json like if you are creating an API, all you need to do is encode it.

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

[](#installation)

To install just add this to your composer.json `"oleander29/decrypt": "dev-master"`then run composer update.

After this add the service provider to the config/app.php file like so `Oleander29\Decrypt\DecryptServiceProvider::class`

And lastly add an alias in the same file(config/app.php) like so `'Decrypt' => 'Oleander29\Decrypt\DecryptServiceFacade'`

Remember to add a variable to your model so the package can see what fields it can decrypt and what it should not, you need to add the following variable:

`protected $encryptable = [ 'field1', 'field2', ];`

To use the decrypter and it's functions just add use Decrypt; on top of your file, and you can then use the following functions like so:

- `Decrypt::collection($collection);`
- `Decrypt::model($model);`

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6112785?v=4)[Christoffer Oleander Nielsen](/maintainers/coleander)[@coleander](https://github.com/coleander)

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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