Skip to content
This repository was archived by the owner on Jan 7, 2020. It is now read-only.

OxCom/CDNVideo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDNVideo

CDNVideo core lib for http://www.cdnvideo.ru/

Introduction

CDNVideo core lib provide a small help to manage url and switch them to CDN. This lib will be extender as new API comes Just donwload lib and include it into your project :

require_once 'lib/autoloader.php';

Settings

Your should define some settings for lib. They should be in your contract with CNDVideo ('domain', 'client_id')

$CDNVideo = new \CDNVideo\CDNVideo(array(
    'domain'  => 'example.com',
    'id'      => 1000,
    'targets' => array(
        'css', 'js', 'jpeg', 'jpg', 'png', 'gif', 'mp3', 'mp4', 'ogg', 'flv'
    ),
    'init_time' => time(), // default: time()
    'ttl'       => 1000, // default: 14 days in seconds
));

About

CDNVideo core lib

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages