Download the PHP package amrsoliman/assets-cdn without Composer
On this page you can find all versions of the php package amrsoliman/assets-cdn. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download amrsoliman/assets-cdn
More information about amrsoliman/assets-cdn
Files in amrsoliman/assets-cdn
Download amrsoliman/assets-cdn
More information about amrsoliman/assets-cdn
Files in amrsoliman/assets-cdn
Vendor amrsoliman
Package assets-cdn
Short Description Easily load your assets from a CDN when on production.
License MIT
Package assets-cdn
Short Description Easily load your assets from a CDN when on production.
License MIT
Please rate this library. Is it a good library?
Informations about the package assets-cdn
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:
- 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)
- The CDN passes through query strings, so that we can invalidate previous versions of your file when you install a new commit?
All versions of assets-cdn with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
illuminate/support Version 5.1.x
illuminate/console Version 5.1.x
illuminate/filesystem Version 5.1.x
illuminate/support Version 5.1.x
illuminate/console Version 5.1.x
illuminate/filesystem Version 5.1.x
The package amrsoliman/assets-cdn contains the following files
Loading the files please wait ....