xlabs/hwcdnbundle

HighWinds CDN bundle

Maintainers

👁 xlabs

Package info

bitbucket.org/xmateos/xlabs_hwcdn

Type:symfony-bundle

pkg:composer/xlabs/hwcdnbundle

Statistics

Installs: 664

Dependents: 4

Suggesters: 0

1.0.5 2023-05-15 08:36 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 8efe6110c997d6e83729427c7f868b26bf73e749

  • Xavi Mateos <xmateos.woop@gmail.com>

xlabs highwinds hw cdn bundle

This package is auto-updated.

Last update: 2026-06-15 15:46:19 UTC


README

A redis driven like engine.

Installation

Install through composer:

php -d memory_limit=-1 composer.phar require xlabs/hwcdnbundle

In your AppKernel

public function registerbundles()
{
 return [
 	...
 	...
 	new XLabs\HWCDNBundle\XLabsHWCDNBundle(),
 ];
}

Configuration sample

Default values are shown below:

# app/config/config.yml

x_labs_hwcdn:
 public_url: 'https://public.domain.ext'
 tokenized_url: 'https://signed.domain.ext'
 account: ############
 secretKey: ############
 expiration_ttl: 7200
 api_username: ############
 api_password: ############

Usage

Instantiate the service from a Controller by:

$this->get('xlabs_hwcdn')->...

Usage (TWIG)

Instantiate the service from a Controller by:

{{ getCDNResource({
 'media_path' => '...',
 'tokenize' => false, // protect resource with token
 'expiration_ttl' => 7200,
 'force_download' => false // create a CDN download link
}) }}