PHPackages                             91ahmed/secure-cogs - 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. 91ahmed/secure-cogs

ActiveLibrary

91ahmed/secure-cogs
===================

SecureCogs is a PHP data storage package that allows you to store data in an encrypted key-value pair format, providing various methods to simplify data accessibility and maintainability.

v1.0(1y ago)37MITPHP

Since Jan 6Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/91ahmed/SecureCogs)[ Packagist](https://packagist.org/packages/91ahmed/secure-cogs)[ RSS](/packages/91ahmed-secure-cogs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

SecureCogs is a PHP package for securely storing application data as encrypted key-value pairs, ideal for storing (credentials, secrets, tokens).

Features
--------

[](#features)

- Encrypted key-value storage in flat files.
- Customizable encryption algorithm, key, and IV.
- Returns data as PHP array — easy to integrate.
- No external dependencies beyond standard PHP + composer autoload.

#### Composer Installation

[](#composer-installation)

```
composer require 91ahmed/secure-cogs
```

#### Usage Example

[](#usage-example)

```
require 'vendor/autoload.php';

// Create (or load) a config file (filename without extension)
$config = new \SecureCogs\Cogs("path/to/secure_config");

// Set a new key-value pair
$config->set('key', 'value');

// Update an existing key
$config->edit('key', 'new value');

// Delete a key
$config->delete('key');

// Get all stored data (decrypted)
$data = $config->data();
print_r($data);
```

#### Advanced: Custom Encryption Method

[](#advanced-custom-encryption-method)

```
$config = new \SecureCogs\Cogs("path/to/secure_config");

// Change encryption settings
$config->method('AES-256-CBC');
$config->key('your-very-strong-key-here');
$config->iv('your-initialization-vector');
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance58

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

497d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/724035a53c25fe6db7725e748aa9bf0a773970f53d395db231c18855bb8dd520?d=identicon)[91ahmed](/maintainers/91ahmed)

---

Top Contributors

[![91ahmed](https://avatars.githubusercontent.com/u/44722367?v=4)](https://github.com/91ahmed "91ahmed (13 commits)")

---

Tags

php-configphp-config-parserphp-configurationphp-data-storage

### Embed Badge

![Health badge](/badges/91ahmed-secure-cogs/health.svg)

```
[![Health](https://phpackages.com/badges/91ahmed-secure-cogs/health.svg)](https://phpackages.com/packages/91ahmed-secure-cogs)
```

PHPackages © 2026

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