PHPackages                             healthengine/laravel-easy-aws - 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. [Caching](/categories/caching)
4. /
5. healthengine/laravel-easy-aws

ActiveLibrary[Caching](/categories/caching)

healthengine/laravel-easy-aws
=============================

Cache dynamic AWS credentials

v4.0.0(2mo ago)1249.5k↑28.8%5MITPHPPHP ~8.2.0 || ~8.3.0

Since Mar 9Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/HealthEngineAU/laravel-easy-aws)[ Packagist](https://packagist.org/packages/healthengine/laravel-easy-aws)[ RSS](/packages/healthengine-laravel-easy-aws/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (16)Versions (24)Used By (0)

Laravel Easy AWS
================

[](#laravel-easy-aws)

[![Latest Stable Version](https://camo.githubusercontent.com/c96ca7ee9b20402d17ef2f1d3217dccb01ae5855ec7bd56426537dc3b8d64639/68747470733a2f2f706f7365722e707567782e6f72672f6865616c7468656e67696e652f6c61726176656c2d656173792d6177732f76657273696f6e)](https://packagist.org/packages/healthengine/laravel-easy-aws)[![Total Downloads](https://camo.githubusercontent.com/1f6abe8f94bd1b205a5407d62fe530409eea8544cbc415464a8d15384fc9e969/68747470733a2f2f706f7365722e707567782e6f72672f6865616c7468656e67696e652f6c61726176656c2d656173792d6177732f646f776e6c6f616473)](https://packagist.org/packages/healthengine/laravel-easy-aws)

This is an extension to the [Laravel AWS SDK](https://github.com/aws/aws-sdk-php-laravel) that provides cacheable dynamic credentials - such as those provided by the EC2 Metadata API. This is necessary if you want to `php artisan config:cache` whilst also not using hard coded credentials - since Laravel is unable to cache the Guzzle promise that resolves to credentials when used.

It also binds certain AWS client objects to the Laravel container so you can typehint the specific clients you need, instead of using the `AWS` facade. Clients are added as needed and we welcome PRs so if you need one that is missing, please contribute.

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

[](#installation)

```
composer require healthengine/laravel-easy-aws

```

Usage
-----

[](#usage)

There's not much to it. You can now typehint the `S3Client` directly and it will be resolved instead of having to use the facade to construct the S3 client:

```
// before
$s3 = AWS::createClient('s3');

// after
$s3 = app(Aws\S3\S3Client::class);
```

Credentials are resolved automatically using the default provider chain from the AWS SDK. The only difference is that they will be cached. This really only helps if that credentials chain ended up resolving credentials from the EC2 Metadata API, otherwise it would have been using hardcoded credentials of some kind and caching them doesn't help much.

You can configure which cache store to use by setting the environment variable `EASYAWS_CACHE_STORE` to any built in Laravel cache drivers.

Note
----

[](#note)

Caching credentials can be insecure. Be careful if you are going to use an external cache driver like Redis or database as the credentials are stored in plaintext.

SQS Client
----------

[](#sqs-client)

The queue configuration for AWS SQS has also been modified to use these cached credentials. This means you don't need to add a key or secret for that client - if using SQS as your queue driver. Also **please note** that the `prefix`configuration key is not used because it is redundant, you'll need to prepend the value of `prefix` to `queue`.

License
-------

[](#license)

Laravel Easy AWS is licensed under the MIT license.

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance87

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~122 days

Recently: every ~108 days

Total

22

Last Release

62d ago

Major Versions

1.3.1 → 2.0.02020-03-10

v2.1.1 → v3.0.02023-09-07

v3.0.5 → v4.0.02026-03-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6d54047748ac45bafb3af78039af88ec3569c5a5aa396737a32b8957ad66893?d=identicon)[tspencer244](/maintainers/tspencer244)

![](https://www.gravatar.com/avatar/0caec84933c461475313072790637b89e905b604ce657718e41116fbd7640368?d=identicon)[jradtilbrook](/maintainers/jradtilbrook)

---

Top Contributors

[![yaohua-boey](https://avatars.githubusercontent.com/u/55773428?v=4)](https://github.com/yaohua-boey "yaohua-boey (10 commits)")[![tspencer244](https://avatars.githubusercontent.com/u/15922667?v=4)](https://github.com/tspencer244 "tspencer244 (9 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (6 commits)")[![nathanblogs](https://avatars.githubusercontent.com/u/414153?v=4)](https://github.com/nathanblogs "nathanblogs (3 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (1 commits)")

---

Tags

awscachecredentialslaravellaravelawscachecredentials

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/healthengine-laravel-easy-aws/health.svg)

```
[![Health](https://phpackages.com/badges/healthengine-laravel-easy-aws/health.svg)](https://phpackages.com/packages/healthengine-laravel-easy-aws)
```

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[dragon-code/laravel-cache

An improved interface for working with cache

6844.8k10](/packages/dragon-code-laravel-cache)[anahkiasen/flatten

A package for the Illuminate framework that flattens pages to plain HTML

33113.0k](/packages/anahkiasen-flatten)[nexxai/laravel-cfcache

A handful of Cloudflare cache helpers for Laravel

1317.7k](/packages/nexxai-laravel-cfcache)[omaralalwi/lexi-translate

Laravel translation package with morph relationships and caching.

754.3k2](/packages/omaralalwi-lexi-translate)[michele-angioni/support

Support is a Laravel package which promotes the use of best practices and design patterns.

181.4k1](/packages/michele-angioni-support)

PHPackages © 2026

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