PHP code example of propz / release-parser
1. Go to this page and download the library: Download propz/release-parser 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/ */
propz / release-parser example snippets
// Include main composer autoloader file ...
easeParser( '24.S02E02.9.00.Uhr.bis.10.00.Uhr.German.DL.TV.Dubbed.DVDRip.SVCD.READ.NFO-c0nFuSed', 'tv' );
// See whats inside
print_r( $release->get() );
=> (
[release] => 24.S02E02.9.00.Uhr.bis.10.00.Uhr.German.DL.TV.Dubbed.DVDRip.SVCD.READ.NFO-c0nFuSed
[title] => 24
[title_extra] => 9 00 Uhr bis 10 00 Uhr
[group] => c0nFuSed
[year] =>
[date] =>
[season] => 2
[episode] => 2
[disc] =>
[flags] => Array
(
[0] => READNFO
[1] => TV Dubbed
)
[source] => DVDRip
[format] => SVCD
[resolution] =>
[audio] =>
[device] =>
[os] =>
[version] =>
[language] => Array
(
[de] => German
[multi] => Multilingual
)
[type] => TV
)
// Other examples
echo $release->get( 'source' );
DVDRip
echo $release->get( 'format' );
SVCD
print_r( $release->get( 'flags' ) );
Array
(
[0] => READNFO
[1] => TV Dubbed
)