PHPackages                             daynnnnn/statamic-cloudfront - 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. daynnnnn/statamic-cloudfront

ActiveLibrary[Caching](/categories/caching)

daynnnnn/statamic-cloudfront
============================

Allows you to use cloudfront as a statamic cache strategy.

v2.1.0(1y ago)52.0k2PHP

Since Jul 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Daynnnnn/statamic-cloudfront)[ Packagist](https://packagist.org/packages/daynnnnn/statamic-cloudfront)[ RSS](/packages/daynnnnn-statamic-cloudfront/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (13)Used By (0)

Statamic Cloudfront
-------------------

[](#statamic-cloudfront)

Use cloudfront as a static cache driver.

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

[](#installation)

From a standard Statamic V3 site, you can run: `composer require daynnnnn/statamic-cloudfront`

Then you'll just need to add the cloudfront strategy to your static cache config:

```
'strategies' => [

    ...

    'cloudfront' => [
        'driver' => 'cloudfront',
        'expiry' => null,
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION'),
        'distribution' => env('CLOUDFRONT_DISTRIBUTION_ID'),
    ],

],

```

### How it works

[](#how-it-works)

It's pretty simple; if the page should be cached, it sets the responses cache control header to cache for 30 days. Then if a page is updated, an invalidation request will be sent to cloudfront for that page.

### Things to work on

[](#things-to-work-on)

- Add some tests.
- Try and remove `aws/aws-sdk-php` dependency.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance43

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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

Every ~119 days

Recently: every ~199 days

Total

12

Last Release

446d ago

Major Versions

v0.4 → v1.02021-09-28

v1.0.3 → v2.0.02025-02-02

### Community

Maintainers

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

---

Top Contributors

[![Daynnnnn](https://avatars.githubusercontent.com/u/25618897?v=4)](https://github.com/Daynnnnn "Daynnnnn (22 commits)")[![RTC1](https://avatars.githubusercontent.com/u/6593835?v=4)](https://github.com/RTC1 "RTC1 (2 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/daynnnnn-statamic-cloudfront/health.svg)

```
[![Health](https://phpackages.com/badges/daynnnnn-statamic-cloudfront/health.svg)](https://phpackages.com/packages/daynnnnn-statamic-cloudfront)
```

PHPackages © 2026

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