Skip to content

Instantly share code, notes, and snippets.

View gvozdb's full-sized avatar

Павел Гвоздь gvozdb

View GitHub Profile
@gvozdb
gvozdb / videothumb.class.php
Last active October 10, 2015 00:06
Parse link on YouTube, Vimeo and ruTube and returns preview image and clean link on video
<?php
class videoThumb {
var $config;
function __construct($config = array()) {
$this->config = array_merge(array(
'imagesPath' => dirname(__FILE__) . '/images/'
,'imagesUrl' => '/images/'