PHP code example of ericlagarda / axon

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

    

ericlagarda / axon example snippets


// Create a new Axon instance
$axon = new Axon\Search();

// Add a couple of providers to the stack
$axon->registerProvider(new Axon\Search\Provider\YifyProvider());
$axon->registerProvider(new Axon\Search\Provider\KickassProvider());
$axon->registerProvider(new Axon\Search\Provider\PirateBayProvider());
$axon->registerProvider(new Axon\Search\Provider\EztvProvider());

// Start searching!
$torrents = $axon->search('Iron Man 3');

Version     Changes

0.1.0       - Initial release