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 git@github.com:igzard/ncore.git
composer install
cd tools/php-cs-fixer
composer installFor running tests:
make phpunitor
php ./vendor/bin/phpunitCoding style fix:
make cs-fixor
php ./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix srcIf you have any ideas, create an issue: https://github.com/igzard/ncore/issues
PHP Ncore is open-sourced software licensed under the MIT license.