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 2w 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

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity51

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

1019d 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)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k199.6M3.4k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k257.0M28.0k](/packages/friendsofphp-php-cs-fixer)[spatie/laravel-export

Create a static site bundle from a Laravel app

679153.2k7](/packages/spatie-laravel-export)[dagger/dagger

Dagger PHP SDK

271.4k](/packages/dagger-dagger)[lion/bundle

Lion-framework configuration and initialization package

132.4k5](/packages/lion-bundle)

PHPackages © 2026

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