PHPackages                             mezatech/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. mezatech/assets-cdn

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

mezatech/assets-cdn
===================

Easily load your assets from a CDN when on production.

v1.1(9y ago)3346MITPHPPHP &gt;=5.4.0

Since Aug 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/AmrSoliman/assets-cdn)[ Packagist](https://packagist.org/packages/mezatech/assets-cdn)[ RSS](/packages/mezatech-assets-cdn/feed)WikiDiscussions master Synced 1mo 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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

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

3563d 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/mezatech-assets-cdn/health.svg)

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

###  Alternatives

[vinelab/cdn

Content Delivery Network (CDN) Package for Laravel

217240.8k1](/packages/vinelab-cdn)[publiux/laravelcdn

Content Delivery Network (CDN) Package for Laravel

155230.4k](/packages/publiux-laravelcdn)

PHPackages © 2026

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