torrent file
5.3.1
فئة PHP للعمل مع torrent file
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/arokettu/community
الإصدارات المدعومة:
المكتبة متاحة كمصدر مفتوح بموجب شروط ترخيص MIT.