PHP code example of kseven / cpanelapi

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

    

kseven / cpanelapi example snippets



  ild CPanel Client
  use KSeven\CPanel\Init;
  use KSeven\CPanel\Functions\Databases;

  $Auth = [
    "HOST" => "seuhost",
    "PORT" => "2083",
    "USER" => "user",
    "PASSWORD" => "pass"
  ];

  $cPanel = new Init($Auth);
  $Database = new Databases($cPanel);

  var_dump($Database->getDatabases());