PATH:
home
/
lab2454c
/
crypto.keyreum.com
/
vendor
/
botble
/
theme
/
src
/
Supports
<?php namespace Botble\Theme\Supports; use Illuminate\Support\Arr; class Vimeo { /** * @param string $url * @return null|string */ public static function getVimeoID(string $url): ?string { $regExp = '/(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/'; preg_match($regExp, $url, $matches); if (isset($matches[5])) { return $matches[5]; } return null; } /** * @param string $url * @return bool */ public static function isVimeoURL(string $url): bool { $regExp = '/(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/'; return preg_match($regExp, $url); } }
[-] AdminBar.php
[edit]
[-] Youtube.php
[edit]
[+]
..
[-] Vimeo.php
[edit]
[-] ThemeSupport.php
[edit]
[-] SiteMapManager.php
[edit]