Loading, Saving and Creating ############################ Load an existing torrent ======================== You can load a torrent from file, from string, or from stream. .. code-block:: php store('debian.torrent'); // to string $torrentString = $torrent->storeToString(); // to stream $torrent->storeToStream($stream); // to new php://temp stream $phpTemp = $torrent->storeToStream(); Create a torrent for existing directory or file =============================================== .. versionadded:: 5.1 forceMultifile is true by default .. versionadded:: 5.3 createdBy, creationDate The library can create a torrent file from scratch for a file or a directory. .. code-block:: php