PHPackages                             truesocialmetrics/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. truesocialmetrics/cdn

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

truesocialmetrics/cdn
=====================

Cdn helper for ZF2/ZF3/Laminas

2.5.1(3y ago)27.9kMITPHPPHP &gt;=8.1

Since Nov 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/truesocialmetrics/cdn)[ Packagist](https://packagist.org/packages/truesocialmetrics/cdn)[ Docs](https://github.com/truesocialmetrics/cdn)[ RSS](/packages/truesocialmetrics-cdn/feed)WikiDiscussions master Synced 1mo ago

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

TweeCdn
=======

[](#tweecdn)

Version 2.\* Created by Rostislav Mykhajliw [![Build Status](https://camo.githubusercontent.com/c1a71b1487b65196e0f711f90e9607646c70ff0e219387ce8a5f21244bbb57a5/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6e6563726f6d616e74323030352f63646e2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/necromant2005/cdn)

Introduction
------------

[](#introduction)

TweeCdn is a list of view helpers for support css/js/images links transformation due to rules.

Requirements
------------

[](#requirements)

- php &gt;= 7
- zendframework/zend-stdlib
- zendframework/zend-view

Features / Goals
----------------

[](#features--goals)

- Simple by adding ?timestamp marker to the end of file e.q. /css/test.css?1234567
- Release idenitify new static files version by given REVISION number e.q. /css/1234/test.css
- Hash build unique marker based on file md5 hash e.q. /css/af34c42/test.css. It allows users to load only changed files.
- Multiple hostnames supports e.q. host1.com, host2.com
- Hash generator

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

[](#installation)

### Main Setup

[](#main-setup)

#### With composer

[](#with-composer)

1. Add this project and [Cdn](https://github.com/necromant2005/cdn) in your composer.json:

    ```
    "require": {
        "necromant2005/cdn": "*",
    }
    ```
2. Now tell composer to download TweeCdn by running the command:

    ```
    $ php composer.phar update
    ```

#### Post installation

[](#post-installation)

Enabling it in your "application.config.php" file.

```
```php
