polakosz / porthu
Library to search for movies and to get informations for a specific movie from https://port.hu/
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 1
Forks: 3
Open Issues: 0
pkg:composer/polakosz/porthu
Requires
- php: >=7.1
- imangazaliev/didom: ^1.14
- squizlabs/php_codesniffer: ^3.4
Requires (Dev)
- phpunit/phpunit: ^4
This package is auto-updated.
Last update: 2025-11-04 18:20:01 UTC
README
Port.hu is one of the biggest hungarian movie database. This PHP library helps to search for movies and to get informations for a specific movie.
Install
Via Composer
$ composer require polakosz/porthu
Usage
use PoLaKoSz\PortHu\MoviePage; ... $port = new MoviePage(); // returns a PoLaKoSz\PortHu\Models\PortMovie object $movie = $port->get( 104833 ); var_dump( $movie );
use PoLaKoSz\PortHu\QuickSearch; ... $search = new QuickSearch(); // returns an Array of PoLaKoSz\PortHu\Models\QuickSearchResult object $movies = $search->get( 'Viskó' ); var_dump( $movies );
Tests
$ composer run-all-tests: runs both integration and regression tests$ composer run-i-tests: runs only the integration tests (saved webpage parsing)$ composer run-r-tests: runs only the regression tests (to detect HTML DOM changes in the endpoints - downloads webpage(s) from Port.hu and after try to parse them)$ composer run-u-tests: runs only the unit tests
Code formatting
Please use the $ composer run-tidy command before every commit to make sure the source code formatted properly.