PHPackages                             symflex/openssl-component - 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. symflex/openssl-component

ActiveLibrary[Security](/categories/security)

symflex/openssl-component
=========================

OpenSSL component

01PHPCI failing

Since Jul 28Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

OpenSSL
=======

[](#openssl)

[![PHP from Packagist](https://camo.githubusercontent.com/a3f57007e7404d228749ff307f3d63effb64007d61a6bdb91911e94e786e1de0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73796d666c65782f6f70656e73736c2d636f6d706f6e656e74)](https://camo.githubusercontent.com/a3f57007e7404d228749ff307f3d63effb64007d61a6bdb91911e94e786e1de0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73796d666c65782f6f70656e73736c2d636f6d706f6e656e74)[![Codecov](https://camo.githubusercontent.com/a448aa4c222e9307c2e08099e34752f7ae619d3c249f80e7e22db399cdefccbe/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f73796d666c65782f6f70656e73736c2d636f6d706f6e656e74)](https://camo.githubusercontent.com/a448aa4c222e9307c2e08099e34752f7ae619d3c249f80e7e22db399cdefccbe/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f73796d666c65782f6f70656e73736c2d636f6d706f6e656e74)[![Packagist Version](https://camo.githubusercontent.com/36532bd881d0c43fb681903eecba3a5508557742a4a8ef2f06e0566fffab961e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73796d666c65782f6f70656e73736c2d636f6d706f6e656e74)](https://camo.githubusercontent.com/36532bd881d0c43fb681903eecba3a5508557742a4a8ef2f06e0566fffab961e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73796d666c65782f6f70656e73736c2d636f6d706f6e656e74)

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

[](#installation)

Package is available on [Packagist](https://packagist.org/packages/symflex/openssl-component), you can install it using [Composer](https://getcomposer.org).

```
composer require symflex/openssl-component
```

Dependencies
------------

[](#dependencies)

- PHP 7.4
- OpenSSL Extension

Usage
-----

[](#usage)

```
use Symflex\Component\OpenSSL\Key\PemPublicKey;
use Symflex\Component\OpenSSL\Key\PemPrivateKey;
...

$publicKey  = new PemPublicKey('file:///path_to_file');
$privateKey = new PemPrivateKey('file:///path_to_file', 'passphrase');
```

or

```
use Symflex\Component\OpenSSL\Factory\Key\PemKeyFactory;
...

$keyFactory = new \Symflex\Component\OpenSSL\Factory\Key\PemKeyFactory();
$publicKey  = $keyFactory->createPublicKey('file:///path_to_file');
$privateKey = $keyFactory->createPrivateKey('file:///path_to_file', 'passphrase');
```

```
use Symflex\Component\OpenSSL\Signature\Algorithm\Rsa\Sha256;

$data = 'test string';

$opensslSigner = new Sha256($publicKey, $privateKey);
$signature = $opensslSigner->sign($data);

$opensslSigner->verify($data, $signature);
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

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://www.gravatar.com/avatar/7fdb959f6721b82f846599928f60fb1372d1bf1e87884fdd8e3c3c306df26f54?d=identicon)[symflex](/maintainers/symflex)

### Embed Badge

![Health badge](/badges/symflex-openssl-component/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)

PHPackages © 2026

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