Skip to content

Instantly share code, notes, and snippets.

@deivisonarthur
Forked from bubblun/gist:9790114
Created September 30, 2015 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deivisonarthur/40e40330731457a9ebbe to your computer and use it in GitHub Desktop.
Save deivisonarthur/40e40330731457a9ebbe to your computer and use it in GitHub Desktop.
Get Vimeo MP4 URL
function getVimeoMP4($vimeo_id) {
$result = file_get_contents( "http://keepvid.com/?url=http%3A%2F%2Fvimeo.com%2F" . $vimeo_id );
preg_match_all('/"(http\:\/\/pdl.vimeocdn.com.+?)"/i', $result, $matches);
return $matches[1][1];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment