This can be used to upload a single file or call it from another file and upload multiple torrents.
Point the upload.php script to a single folder and upload 1 torrent or point the loop_example.php script a folder of folders and upload many torrents with the same category.
This script gets the torrent name from the parent folder, so name it appropriately.
sudo apt-get install mktorrent
git clone https://github.com/darkalchemy/Pu-239-Uploader.git
cd Pu-239-Uploader
composer install
cp config.php.example config.php
nano config.php
php upload.php
php upload.php category /path/to/parent_folder /path/to/descr[optional]
php upload_loop.php category category /path/to/parent/folder/
git pull
composer install
If you like this project, please consider supporting me on Patreon