PHPackages                             amrsoliman/assets-cdn - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. amrsoliman/assets-cdn

ActiveLibrary[File &amp; Storage](/categories/file-storage)

amrsoliman/assets-cdn
=====================

Easily load your assets from a CDN when on production.

v1.1(9y ago)31.1kMITPHPPHP &gt;=5.4.0

Since Aug 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/AmrSoliman/assets-cdn)[ Packagist](https://packagist.org/packages/amrsoliman/assets-cdn)[ RSS](/packages/amrsoliman-assets-cdn/feed)WikiDiscussions master Synced 4w ago

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

assets-cdn
==========

[](#assets-cdn)

Easily display your Laravel assets through a cdn without having to change a line in your views.

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

[](#installation)

Add the following require to your `composer.json` file:

```
"require": {
	...
	"amrsoliman/assets-cdn": "1.*"
},
...
"post-install-cmd": [
	...
	"php artisan assets-cdn:update"
],

```

Then run `composer update`

Add `"AmrSoliman\AssetsCdn\AssetsCdnServiceProvider",` to the list of providers in `config/app.php`.

Run `php artisan vendor:publish`

Go to file `config/assets-cdn.php` and configure your CDN. We recommend only enabling it in production.

Note on the CDN
---------------

[](#note-on-the-cdn)

Any CDN works provided that the following conditions are met:

1. The path on your server is the same as the path on the CDN (i.e. yoursite.com/assets/image.png = the.cdn.net/assets/image.png)
2. The CDN passes through query strings, so that we can invalidate previous versions of your file when you install a new commit?

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3605d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a7c17b25848bf9ad789ff5115159cd996cba6d0ed36f5fdbbcebe05c81beddc?d=identicon)[AmrSoliman](/maintainers/AmrSoliman)

---

Top Contributors

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

---

Tags

laravels3assetscdn

### Embed Badge

![Health badge](/badges/amrsoliman-assets-cdn/health.svg)

```
[![Health](https://phpackages.com/badges/amrsoliman-assets-cdn/health.svg)](https://phpackages.com/packages/amrsoliman-assets-cdn)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M162](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

20432.2M1.5k](/packages/illuminate-queue)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4821.5k](/packages/erag-laravel-lang-sync-inertia)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

252143.0k](/packages/erag-laravel-disposable-email)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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