This module provides PHP API-s to manage torrents from ncore.pro eg.: search from RSS
composer require igzard/ncore
- Log in to ncore.pro
- Navigate to the 'Settings / Other' data page
- Copy the 'passkey'
Searching for Toy Story in category: Film (HUN SD). By default, without category, it searches in film hun sd.
$ncore = new Ncore('{passkey}');
$torrents = $ncore->search([
'search' => 'Toy Story',
'category' => Category::FILM_HUN_SD
]);
Download first match for Toy Story in category: Film (HUN SD). By default, without category, it searches in film hun sd.
$ncore = new Ncore('{passkey}');
$torrents = $ncore->download(
[
'search' => 'Toy Story',
'category' => Category::FILM_HUN_SD
],
'{pathToDownload}',
'{filename}'
);
Thank you for considering contributing to the PHP Ncore! To contribution follow the steps.
git clone [email protected]:igzard/ncore.git
composer install
cd tools/php-cs-fixer
composer install
For running tests:
make phpunit
or
php ./vendor/bin/phpunit
Coding style fix:
make cs-fix
or
php ./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src
If you have any ideas, create an issue: https://github.com/igzard/ncore/issues
PHP Ncore is open-sourced software licensed under the MIT license.