PHPackages                             linkorb/sops-php - 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. linkorb/sops-php

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

linkorb/sops-php
================

SOPS wrapper library for PHP

v1.0.2(2y ago)010MITPHPPHP &gt;=8.0

Since Oct 24Pushed 2y ago3 watchersCompare

[ Source](https://github.com/linkorb/sops-php)[ Packagist](https://packagist.org/packages/linkorb/sops-php)[ Docs](http://www.github.com/linkorb/sops-php)[ RSS](/packages/linkorb-sops-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Sops PHP wrapper libary
=======================

[](#sops-php-wrapper-libary)

[SOPS](https://github.com/getsops/sops) is an editor of encrypted files that supports YAML, JSON, ENV, INI and BINARY formats and encrypts with AWS KMS, GCP KMS, Azure Key Vault, age, and PGP.

This repository provides a SOPS wrapper PHP library for PHP applications.

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

[](#installation)

```
composer require linkorb/sops-php

```

Example
-------

[](#example)

```
use linkORB\Shipyard\Sops as SopsWrapper;

// encrypt a file using a encryption method
$sops = new SopsWrapper();
$data = $sops->encrypt($key, $filepath, $method);

// encrypt a file using a encryption method
$sops = new SopsWrapper();
$data = $sops->decrypt($filepath);
```

CLI usage
---------

[](#cli-usage)

You can use the `bin/sops-php` CLI application to run commands for encryption/decryption.

The application needs a couple of configuration directives to work:

- Install SOPS ()
- [Age](https://age-encryption.org) or other encryption tool + key

### Example commands

[](#example-commands)

```
# encryption
php bin/sops-php sops:encrypt -k age1tjzcc45rq3rlnt0hd6a77w9p90pdzmq3df7pdgtkrhynyxs25y2qltryk0 -m age  composer.json

#decryption
php bin/sops-php sops:decrypt composer.sops.json

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity50

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.

###  Release Activity

Cadence

Every ~5 days

Total

3

Last Release

927d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Tags

phplibrarysops

### Embed Badge

![Health badge](/badges/linkorb-sops-php/health.svg)

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

PHPackages © 2026

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