torrent file
5.3.1
torrent file 작업을 위한 PHP 클래스
composer require arokettu/torrent-file
<?php
use Arokettu Torrent TorrentFile ;
// open file
$ torrent = TorrentFile:: load ( ' debian.torrent ' );
// create for path (file or directory)
$ torrent = TorrentFile:: fromPath ( ' /home/user/dists/debian ' );
// manipulate fields
$ torrent -> setAnnounce ( ' http://tracker.example:1234 ' );
// list files
foreach ( $ torrent -> v1 ()-> getFiles () as $ file ) {
echo implode ( ' / ' , $ file -> path ()) , ' : ' , $ file -> length , PHP_EOL ;
}
라이브러리 기반 CLI 도구: https://sandfox.dev/php/torrent-file-cli.html
여기에서 전체 문서를 읽어보세요: https://sandfox.dev/php/torrent-file.html
또한 문서 읽기: https://torrent-file.readthedocs.io/
GitLab의 주요 저장소에 문제를 제출하세요: https://gitlab.com/sandfox/torrent-file/-/issues
질문이 있으시면 언제든지 Gitter 방에 문의하세요: https://gitter.im/aroketu/community
지원되는 버전:
라이브러리는 MIT 라이선스 조건에 따라 오픈 소스로 제공됩니다.