PHP code example of polakosz / porthu
1. Go to this page and download the library: Download polakosz/porthu 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/ */
polakosz / porthu example snippets
` php
use PoLaKoSz\PortHu\MoviePage;
...
$port = new MoviePage();
// returns a PoLaKoSz\PortHu\Models\PortMovie object
$movie = $port->get( 104833 );
var_dump( $movie );
` php
use PoLaKoSz\PortHu\QuickSearch;
...
$search = new QuickSearch();
// returns an Array of PoLaKoSz\PortHu\Models\QuickSearchResult object
$movies = $search->get( 'Viskó' );
var_dump( $movies );