PHP code example of schnittstabil / saika

1. Go to this page and download the library: Download schnittstabil/saika library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

schnittstabil / saika example snippets


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());

composer global