PHP code example of m8a2p5 / vipleirinhas
1. Go to this page and download the library: Download m8a2p5/vipleirinhas library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
m8a2p5 / vipleirinhas example snippets
ipLeirinhas\Filme;
use VipLeirinhas\Fotos;
try {
$filme = new Filme ('https://www.brasileirinhas.com.br/filme/a-flor-da-pele.html');
$titulo = $filme->getTitulo ();
$capas = $filme->getCapas ();
$cenas = $filme->getCenas ();
echo "Filme: {$titulo}\n";
echo "Capa: {$capas ['capa_frente']}\n";
echo "Qualidades disponíveis: \n";
foreach ($cenas ['cenas'] as $cena){
$melhor_qualidade = $cena ['qualidades'][(count ($cena ['qualidades'])-1)];
echo " • {$melhor_qualidade ['qualidade_video']} - {$melhor_qualidade ['url']}\n";
}
} catch (\Throwable $th) {
echo "Erro: {$th->getMessage ()}\n";
echo "Linha: {$th->getTraceAsString()}\n";
}