for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\EmbedVideo\Parsers;
/**
* Class VimeoParser
*
* @package Arcanedev\EmbedVideo\Parsers
* @author ARCANEDEV <[email protected]>
*/
class VimeoParser extends AbstractParser
{
/* -----------------------------------------------------------------
| Getters & Setters
| -----------------------------------------------------------------
* Get the video id from cached matches.
* @return mixed
public function videoId()
return $this->getCached(2);
}
* Get the default URL queries.
* @return array
protected function defaultQueries()
return [];
* Get the iframe pattern.
* @return string
protected function getIframePattern()
return '{protocol}://player.vimeo.com/video/{id}';
* Get the iframe replace.
protected function getIframeReplacer()
return [
'{protocol}' => $this->protocol,
'{id}' => $this->videoId(),
];
* Get the info URL.
public function getInfoUrl()
return $this->protocol.'://vimeo.com/'.$this->videoId();