Unofficial Chomikuj.pl PHP API.
composer require retrowaver/chomikuj2
use Chomikuj\Api;
//...
$chomikuj = new Api();
$chomikuj->login('username', 'password');// Create some folders in root folder (0)
$chomikuj->createFolder('some folder', 0);
$chomikuj->createFolder('some NSFW folder', 0, true);
$chomikuj->createFolder('some password-protected folder', 0, false, 'some_password');// Remove folder with id 12345
$chomikuj->removeFolder(12345);// Upload a file to root folder
$chomikuj->uploadFile(0, 'path/to/file.zip');// Upload a file to a folder with id 12
$chomikuj->uploadFile(12, 'path/to/another/file.zip');$chomikuj->logout();This project is licensed under the MIT License - see the LICENSE file for details.