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

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

mald/cdn-helper
===============

Helper function to create CDN url's

04032PHP

Since Mar 23Pushed 3y ago2 watchersCompare

[ Source](https://github.com/hans-mald-digital/cdn-helper)[ Packagist](https://packagist.org/packages/mald/cdn-helper)[ RSS](/packages/mald-cdn-helper/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

mald/cdn-helper
===============

[](#maldcdn-helper)

CDN helper

- [Installation](#installation)
    - [Requirements](#requirements)
- [Testing](#testing)

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

[](#installation)

1. First install the helper with composer:

`composer require mald/cdn-helper`

2. Publish assets:

`php artisan vendor:publish --tag=mald-cdn-helper`

Add CDN\_URL to the .env of the project with the correct url towards the cdn, for example:

CDN\_URL=

Usage
-----

[](#usage)

Within our project you can use the cdn() helper function which accepts 3 parameters:

```
