PHP code example of igzard / ncore

1. Go to this page and download the library: Download igzard/ncore 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/ */

    

igzard / ncore example snippets


$ncore = new Ncore('{passkey}');
$torrents = $ncore->search([
    'search' => 'Toy Story',
    'category' => Category::FILM_HUN_SD
]);

$ncore = new Ncore('{passkey}');
$torrents = $ncore->download(
    [
        'search' => 'Toy Story',
        'category' => Category::FILM_HUN_SD
    ],
    '{pathToDownload}',
    '{filename}'
);
bash
php ./vendor/bin/phpunit
bash
php ./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src