PHPackages                             salernolabs/slzcrypt - 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. salernolabs/slzcrypt

ActiveLibrary[Security](/categories/security)

salernolabs/slzcrypt
====================

Simple PHP wrapper around OpenSSL encryption.

v1.0.0(6y ago)0978MITPHPPHP &gt;=7.2

Since May 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/salernolabs/slzcrypt)[ Packagist](https://packagist.org/packages/salernolabs/slzcrypt)[ Docs](http://www.salernolabs.com/)[ RSS](/packages/salernolabs-slzcrypt/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

salernolabs/slzcrypt
====================

[](#salernolabsslzcrypt)

[![Latest Stable Version](https://camo.githubusercontent.com/9a71e0073bac06afbbbbb5d9ac9fab5f2138be535dabe0ef0cbe670cb4fc57e4/68747470733a2f2f706f7365722e707567782e6f72672f73616c65726e6f6c6162732f736c7a63727970742f762f737461626c65)](https://packagist.org/packages/salernolabs/slzcrypt)[![License](https://camo.githubusercontent.com/325fff45996a16bee6b8060ac6692017cbcbb78e98b66d53a239d35ce2350ef4/68747470733a2f2f706f7365722e707567782e6f72672f73616c65726e6f6c6162732f736c7a63727970742f6c6963656e7365)](https://packagist.org/packages/salernolabs/slzcrypt)[![Build Status](https://camo.githubusercontent.com/48ce06c794278695b97fdf793f5b1eb8990ec0b5e257f5d9f9579831f34cd984/68747470733a2f2f7472617669732d63692e636f6d2f73616c65726e6f6c6162732f736c7a63727970742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/salernolabs/slzcrypt)

Wrapper around OpenSSL encryption in PHP. Another breakout from my custom framework.

Install
-------

[](#install)

Use composer

```
composer require salernolabs/slzcrypt

```

Usage
-----

[](#usage)

Instantiate a class with a key and encrypt or decrypt data.

```
$crypt = new \SalernoLabs\Slzcrypt\Crypt($key);

$encrypted = $crypt->encrypt($input);

$decrypted = $crypt->decrypt($encrypted);

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~265 days

Total

4

Last Release

2475d ago

Major Versions

0.1.2 → v1.0.02019-08-03

PHP version history (2 changes)0.1.0PHP &gt;=5.6

v1.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/155974?v=4)[Eric Salerno](/maintainers/ericsalerno)[@ericsalerno](https://github.com/ericsalerno)

---

Top Contributors

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

---

Tags

decryptencryptopensslphpwrapperphpencryptionopenssldecryption

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[payu/apple-pay

ApplePay Token Decoder

51983.2k](/packages/payu-apple-pay)[camcima/dukpt-php

DUKPT implementation in PHP

25153.1k](/packages/camcima-dukpt-php)[poly-crypto/poly-crypto

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+

127.8k1](/packages/poly-crypto-poly-crypto)[stymiee/php-simple-encryption

The PHP Simple Encryption library is designed to simplify the process of encrypting and decrypting data while ensuring best practices are followed. By default is uses a secure encryption algorithm and generates a cryptologically strong initialization vector so developers do not need to becomes experts in encryption to securely store sensitive data.

448.0k](/packages/stymiee-php-simple-encryption)

PHPackages © 2026

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