PHP code example of jonexyz / bt2magnet

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

    

jonexyz / bt2magnet example snippets

$xslt

yz\Bt2magnet\MagnetCreate;

// $path Bt种子文件路径
$magnet = MagnetCreate::init($path);
var_dump($magnet);