New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mezatech/assets-cdn

Easily load your assets from a CDN when on production.
346 3

Larablocks Analysis

mezatech/assets-cdn works with Laravel 5 (latest release v1.1, Aug 15, 2016), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Aug 15, 2016)
  • 0 downloads a month (needs 10,000)
  • 3 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Aug 15, 2016.
  • No releases in the last 12 months.
  • First released: Aug 15, 2016.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require mezatech/assets-cdn
Latest Version:v1.1
PHP:>=5.4.0
Laravel:5
License:MIT
Last Updated:Aug 15, 2016
Links: GitHub  ·  Packagist
Maintainer: AmrSoliman

assets-cdn

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

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

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?

Alternatives to mezatech/assets-cdn

publiux/laravelcdn

Content Delivery Network (CDN) Package for Laravel

242,433 154
vinelab/cdn

Content Delivery Network (CDN) Package for Laravel

248,268 217
spekkionu/assetcachebuster

Prefixes asset urls with a unique hash which will allow invalidation of asset fi...

44,703 32

Version History

Version Released PHP Laravel License
v1.1 >=5.4.0 5.1.x MIT