torrent file
5.3.1
Kelas PHP untuk bekerja dengan 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 ;
}
Alat CLI berdasarkan perpustakaan: https://sandfox.dev/php/torrent-file-cli.html
Baca dokumentasi lengkapnya di sini: https://sandfox.dev/php/torrent-file.html
Juga di Baca Dokumen: https://torrent-file.readthedocs.io/
Silakan ajukan masalah pada repo utama kami di GitLab: https://gitlab.com/sandfox/torrent-file/-/issues
Jangan ragu untuk mengajukan pertanyaan apa pun di ruang kami di Gitter: https://gitter.im/arokettu/community
Versi yang didukung:
Perpustakaan tersedia sebagai sumber terbuka berdasarkan ketentuan Lisensi MIT.