igzard / ncore
PHP Ncore Parser
1.0.5
2024-06-26 19:39 UTC
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
- ext-simplexml: *
- guzzlehttp/guzzle: ^7.8
- nesbot/carbon: ^3.2
Requires (Dev)
- ext-http: *
- phpunit/phpunit: ^10.5
README
This module provides PHP API-s to manage torrents from ncore.pro eg.: search from RSS
Install
composer require igzard/ncore
Get Passkey from ncore
- Log in to ncore.pro
- Navigate to the 'Settings / Other' data page
- Copy the 'passkey'
Examples
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}' );
Contributing
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 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
Licence
PHP Ncore is open-sourced software licensed under the MIT license.