PHPackages                             luv-vik/aws-secrets-helper - 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. luv-vik/aws-secrets-helper

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

luv-vik/aws-secrets-helper
==========================

A PHP helper function to retrieve secret values from AWS Secrets Manager with caching in Redis.

00PHP

Since Aug 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/luv-vik/aws-secrets-helper)[ Packagist](https://packagist.org/packages/luv-vik/aws-secrets-helper)[ RSS](/packages/luv-vik-aws-secrets-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AWS Secrets Helper
==================

[](#aws-secrets-helper)

A PHP helper function to retrieve secret values from AWS Secrets Manager with caching in Redis.

Description
-----------

[](#description)

This helper function `awsSecret` allows you to securely fetch secret values from AWS Secrets Manager and cache them in Redis for improved performance. This is particularly useful for reducing the number of requests to AWS Secrets Manager and speeding up your application.

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

[](#installation)

1. **Clone the repository:**

    ```
    git clone https://github.com/luv-vik/aws-secrets-helper.git
    cd aws-secrets-helper
    ```
2. **Install dependencies:**

    Make sure you have Composer installed. Then, run:

    ```
    composer install
    ```
3. **Configuration:**

    Ensure you have the following environment variables set in your project:

    - `REDIS_HOST`: The hostname of your Redis server.
    - `REDIS_PORT`: The port number of your Redis server.
    - `AWS_DEFAULT_REGION`: The AWS region where your secrets are stored.
    - `AWS_SECRET_ARN`: The ARN of the AWS secret you want to retrieve.

Usage
-----

[](#usage)

Include the helper function in your project and call it as needed:

```
$mySecret = awsSecret('my-secret-key', 'default-value');

echo $mySecret;
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4943771a01578b745c21e4de36ec0b6d2b2aff741f0c64b5f6099ea2f0774d10?d=identicon)[luv-vik](/maintainers/luv-vik)

---

Top Contributors

[![luv-vik](https://avatars.githubusercontent.com/u/24287387?v=4)](https://github.com/luv-vik "luv-vik (3 commits)")

### Embed Badge

![Health badge](/badges/luv-vik-aws-secrets-helper/health.svg)

```
[![Health](https://phpackages.com/badges/luv-vik-aws-secrets-helper/health.svg)](https://phpackages.com/packages/luv-vik-aws-secrets-helper)
```

###  Alternatives

[pwm/datetime-period

An implementation of the datetime period type for working with temporal intervals

679.0k](/packages/pwm-datetime-period)

PHPackages © 2026

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