PHP code example of jowy / online

1. Go to this page and download the library: Download jowy/online 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/ */

    

jowy / online example snippets




use Online\Online;

$online = new Online('your-api-token-here');

$abuse = $online->abuse();
$network = $online->network();
$server = $online->server();
$storage = $online->storage();
$user = $online->user();

// Get user info
$user->getUserInfo();

// Get all server id
$server->getAllServerId();

// Get abuse list
$abuse->getAbuseList();

// Get ddos alert
$network->getDdosAlert();

// Get Rpnsync backup
$storage->getRpnSyncBackup();