SAIKA – Simple All-Inkl KasApi [WIP].
composer global require schnittstabil/saika
use Schnittstabil\Saika\KasApi;
$api = KasApi::getInstance(getenv('KAS_AUTH_USER'), getenv('KAS_AUTH_PASS'));
// change owner of /www/htdocs/<...>/.htaccess to getenv('KAS_AUTH_USER')
$api->chown('.htaccess');
// change owner of /www/htdocs/<...>/.htaccess to www-data
$api->chown('.htgroups', $api->getWwwUser());
MIT © Michael Mayer