PHPackages                             wijourdil/statically-cdn-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. wijourdil/statically-cdn-helper

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

wijourdil/statically-cdn-helper
===============================

A Laravel/Lumen PHP helper to use the statically.io CDN

1.0.0(4y ago)169MITPHPPHP ^8.0CI failing

Since Mar 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/wijourdil/statically-cdn-helper)[ Packagist](https://packagist.org/packages/wijourdil/statically-cdn-helper)[ Docs](https://github.com/wijourdil/statically-cdn-helper)[ RSS](/packages/wijourdil-statically-cdn-helper/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (2)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cbb6079d901dd94e5335d4b99f3d502b8fd885cddc12a98eb750f2b13f9e3ea2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77696a6f757264696c2f737461746963616c6c792d63646e2d68656c7065722e737667)](https://packagist.org/packages/wijourdil/statically-cdn-helper)[![GitHub Tests Action Status](https://camo.githubusercontent.com/8881edad7eb8e40f4c42c247f9cbf05dea0d3f764ee2fddd6a360ac45cc973f9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f77696a6f757264696c2f737461746963616c6c792d63646e2d68656c7065722f74657374732e796d6c3f6c6162656c3d7465737473)](https://github.com/wijourdil/statically-cdn-helper/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/4c4fa0c7329cc675ae1dcfeec96861fba7dab9c579b328bdf8a092d740cf539f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77696a6f757264696c2f737461746963616c6c792d63646e2d68656c7065722e737667)](https://packagist.org/packages/wijourdil/statically-cdn-helper)[![Packagist PHP Version Support](https://camo.githubusercontent.com/15e84710559ae8fad826aa35ccddc87d478a7017a50250ff77a8209187e22e78/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f77696a6f757264696c2f737461746963616c6c792d63646e2d68656c706572)](https://camo.githubusercontent.com/15e84710559ae8fad826aa35ccddc87d478a7017a50250ff77a8209187e22e78/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f77696a6f757264696c2f737461746963616c6c792d63646e2d68656c706572)[![Packagist License](https://camo.githubusercontent.com/00cd8a6c61387c95ec20f5eee780cf65fedbae54961bd5eff6c85c718fbee29b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f77696a6f757264696c2f737461746963616c6c792d63646e2d68656c706572)](https://camo.githubusercontent.com/00cd8a6c61387c95ec20f5eee780cf65fedbae54961bd5eff6c85c718fbee29b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f77696a6f757264696c2f737461746963616c6c792d63646e2d68656c706572)[![gitmoji.dev](https://camo.githubusercontent.com/0a5f37b441778890e89d3cdfeebeb8529fa3c2e814e12c54c173402812a1c0ad/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6769746d6f6a692d2532302546302539462539382539432532302546302539462539382538442d4646444436372e7376673f7374796c653d666c6174)](https://gitmoji.dev)

⚡ [Statically.io](https://statically.io/) Laravel/Lumen helper
==============================================================

[](#-staticallyio-laravellumen--helper)

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

[](#installation)

```
composer require wijourdil/statically-cdn-helper
```

### Laravel

[](#laravel)

Nothing to do,the package will be discovered automatically.

### Lumen

[](#lumen)

Register the package service provider in your `bootstrap/app.php` file:

```
$app->register(\Wijourdil\Statically\StaticallyCdnHelperServiceProvider::class);
```

Configuration
-------------

[](#configuration)

You can define the following constants in your `.env` file:

```
# What: (de)activate the cdn helper
# Allowed value: true | false
# Default: false
CDN_ENABLED=true

# What: define your website domain to use in generated cdn url
# Allowed value: any string containing a valid domain
# Default: env('APP_URL')
CDN_SITE_DOMAIN="www.my-website.com"
```

Usage
-----

[](#usage)

Just use the `cdn()` helper instead of `asset()` of `mix()`

```
// Before
asset('img/photo.png')
// => 'https://site.com/img/photo.png'

// After, without mix-manifest.json
cdn('img/photo.png')
// => '//cdn.statically.io/img/site.com/img/photo.png'

// After, with mix-manifest.json
cdn('img/photo.png')
// => '//cdn.statically.io/img/site.com/img/photo.png?id=23ea1efe0290977b58d454f5164b2a32'
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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

1583d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/922848e6470743d471d0a49f306bb92896f978a6a755d83cc201df89f49e81c4?d=identicon)[wijourdil](/maintainers/wijourdil)

---

Top Contributors

[![wijourdil](https://avatars.githubusercontent.com/u/12596207?v=4)](https://github.com/wijourdil "wijourdil (2 commits)")

---

Tags

laravellumencdnstaticallystatically.io

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wijourdil-statically-cdn-helper/health.svg)

```
[![Health](https://phpackages.com/badges/wijourdil-statically-cdn-helper/health.svg)](https://phpackages.com/packages/wijourdil-statically-cdn-helper)
```

###  Alternatives

[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

98112.5k](/packages/laracrafts-laravel-url-shortener)[proai/lumen-annotations

Route and event binding annotations for Laravel Lumen

1012.7k](/packages/proai-lumen-annotations)

PHPackages © 2026

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