PHPackages                             burakboz/cyberlink - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. burakboz/cyberlink

ActiveLibrary[API Development](/categories/api)

burakboz/cyberlink
==================

Fills the missing CyberPanel API. Warning: It's not an API or API service. It uses ssh and sftp protocols to get job done and requires root access to server.

v1.0.1(2y ago)9486MITPHP

Since Aug 31Pushed 2y ago3 watchersCompare

[ Source](https://github.com/BurakBoz/CyberLink)[ Packagist](https://packagist.org/packages/burakboz/cyberlink)[ RSS](/packages/burakboz-cyberlink/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (3)Versions (2)Used By (0)

CyberLink for CyberPanel
========================

[](#cyberlink-for-cyberpanel)

A php library to utilize CyberPanel without API.
------------------------------------------------

[](#a-php-library-to-utilize-cyberpanel-without-api)

[Take a look](https://cyberpanel.docs.apiary.io/) to CyberPanel api documentation, yes almost nothing.

```
Currently CyberPanel doesn't have API functions fully described and implemented.
So I wrote this library.

```

\##Composer Install `composer require burakboz/cyberlink:dev-master`

\##Example usage

```
// If you need public key auth on ssh connection provide private key string to $key parameter otherwise it should be null.
// $enableSecureFTP parameter should be true for using setCustomSSL method.
// If you don't need this don't set it true.
$ip         = "127.0.0.1";
$user       = "root"; // use only root user
$password   = "TopSecretPassword"; // root password
$port       = 22; // ssh port
$timeout    = 20; // connection timeout
$enableSecureFTP = false; // set it true if you use $cyberlink->setCustomSSL() method.
$cyberlink  = new \BurakBoz\CyberLink($ip, $user, $password, $key = null, $port = 22, $timeout = 10, $enableSecureFTP = false);
$phpVersion = "7.3";
$owner      = "admin";
$package    = "Default";
try
{
    if($cyberlink->createWebsite("merhaba.com", "admin@siteowner.com", $package, $owner, $phpVersion))
    {
        echo "Host created.";
    }
    else
    {
        echo "Error: " . $cyberlink->getLastMessage();
    }
}
catch (Exception $e)
{
    echo "Error: " . $e->getMessage();
}

```

### What is the magic of this library?

[](#what-is-the-magic-of-this-library)

#### Website Functions

[](#website-functions)

##### createWebsite

[](#createwebsite)

```
/**
 * @param        $domainName
 * @param        $email
 * @param string $package
 * @param string $owner
 * @param string $phpVersion
 * @return bool
 * @throws Exception
 */
$cyberlink->createWebsite($domainName, $email, $package = self::package, $owner = self::owner, $phpVersion = self::phpVersion);

```

##### deleteWebsite

[](#deletewebsite)

```
/**
 * @param $domainName
 * @return bool
 * @throws Exception
 */
$cyberlink->deleteWebsite($domainName);

```

##### createChild

[](#createchild)

```
/**
 * @param        $masterDomain
 * @param        $childDomain
 * @param string $owner
 * @param string $phpVersion
 * @return bool
 * @throws Exception
 */
$cyberlink->createChild($masterDomain, $childDomain, $owner = self::owner, $phpVersion = self::phpVersion);

```

##### deleteChild

[](#deletechild)

```
/**
 * @param $childDomain
 * @return bool
 * @throws Exception
 */
$cyberlink->deleteChild($childDomain);

```

##### listWebsites

[](#listwebsites)

```
/**
 * @return mixed
 */
$cyberlink->listWebsites();

```

##### changePHP

[](#changephp)

```
/**
 * @param        $domainName
 * @param string $phpVersion
 * @return bool
 * @throws Exception
 */
$cyberlink->changePHP($domainName, $phpVersion = self::phpVersion);

```

##### changePackage

[](#changepackage)

```
/**
 * @param        $domainName
 * @param string $packageName
 * @return bool
 * @throws Exception
 */
$cyberlink->changePackage($domainName, $packageName = self::package);

```

#### DNS Functions

[](#dns-functions)

###### Not Implemented yet.

[](#not-implemented-yet)

#### Backup Functions

[](#backup-functions)

##### createBackup

[](#createbackup)

```
/**
 * @param $domainName
 * @return bool
 * @throws Exception
 */
$cyberlink->createBackup($domainName);

```

##### restoreBackup

[](#restorebackup)

```
/**
 * @param $domainName
 * @param $fileName
 * @return bool
 * @throws Exception
 */
$cyberlink->restoreBackup($domainName, $fileName);

```

#### Package Functions

[](#package-functions)

##### createPackage

[](#createpackage)

```
/**
 * @param        $packageName
 * @param int    $diskSpace
 * @param int    $bandwidth
 * @param int    $emailAccounts
 * @param int    $dataBases
 * @param int    $ftpAccounts
 * @param int    $allowedDomains
 * @param string $owner
 * @return bool
 * @throws Exception
 */
$cyberlink->createPackage($packageName, $diskSpace = 1000, $bandwidth = 10000, $emailAccounts = 100, $dataBases = 100, $ftpAccounts = 100, $allowedDomains = 100, $owner = self::owner);

```

##### deletePackage

[](#deletepackage)

```
/**
 * @param $packageName
 * @return bool
 * @throws Exception
 */
$cyberlink->deletePackage($packageName);

```

##### listPackages

[](#listpackages)

```
/**
 * @return mixed
 */
$cyberlink->listPackages();

```

#### Database Functions

[](#database-functions)

##### createDatabase

[](#createdatabase)

```
/**
 * @param $databaseWebsite
 * @param $dbName
 * @param $dbUsername
 * @param $dbPassword
 * @return bool
 * @throws Exception
 */
$cyberlink->createDatabase($databaseWebsite, $dbName, $dbUsername, $dbPassword);

```

##### deleteDatabase

[](#deletedatabase)

```
/**
 * @param $dbName
 * @return bool
 * @throws Exception
 */
$cyberlink->deleteDatabase($dbName);

```

##### listDatabases

[](#listdatabases)

```
/**
 * @param $databaseWebsite
 * @return mixed
 */
$cyberlink->listDatabases($databaseWebsite);

```

#### Email Functions

[](#email-functions)

###### Not Implemented yet.

[](#not-implemented-yet-1)

#### FTP Functions

[](#ftp-functions)

##### createFTPAccount

[](#createftpaccount)

```
/**
 * @param        $domainName
 * @param        $userName
 * @param        $password
 * @param string $owner
 * @return bool
 * @throws Exception
 */
$cyberlink->createFTPAccount($domainName, $userName, $password, $owner = self::owner);

```

##### deleteFTPAccount

[](#deleteftpaccount)

```
/**
 * @param $userName
 * @return bool
 * @throws Exception
 */
$cyberlink->deleteFTPAccount($userName);

```

##### changeFTPPassword

[](#changeftppassword)

```
/**
 * @param $userName
 * @param $password
 * @return bool
 * @throws Exception
 */
$cyberlink->changeFTPPassword($userName, $password);

```

##### listFTP

[](#listftp)

```
/**
 * @param $domainName
 * @return mixed
 */
$cyberlink->listFTP($domainName);

```

#### SSL Functions

[](#ssl-functions)

##### issueSSL

[](#issuessl)

```
/**
 * @param $domainName
 * @return bool
 * @throws Exception
 */
$cyberlink->issueSSL($domainName);

```

##### hostNameSSL

[](#hostnamessl)

```
/**
 * @param $domainName
 * @return bool
 * @throws Exception
 */
$cyberlink->hostNameSSL($domainName);

```

##### mailServerSSL

[](#mailserverssl)

```
/**
 * @param $domainName
 * @return bool
 * @throws Exception
 */
$cyberlink->mailServerSSL($domainName);

```

#### Extra Functions

[](#extra-functions)

##### Set Custom SSL

[](#set-custom-ssl)

```
/**
 * Warning! This method shouldn't be trusted. In future versions of CyberPanel (Currently 1.9) and LiteSpeed may cause system failure. Use at your own risk.
 * @param $domain
 * @param $publicKey
 * @param $privateKey
 * @return bool
 * @throws Exception
 */
$cyberlink->setCustomSSL($domain, $publicKey, $privateKey);

```

##### Reset CyberPanel Admin Password

[](#reset-cyberpanel-admin-password)

```
/**
 * @param $password
 * @return string
 */
$cyberlink->resetAdminPassword($password);

```

##### Upgrade CyberPanel

[](#upgrade-cyberpanel)

```
/**
 * @return string
 */
$cyberlink->upgradeCyberPanel();

```

##### Restart LiteSpeed

[](#restart-litespeed)

```
/**
 * @return string
 */
$cyberlink->restartLiteSpeed();

```

##### Reboot Server

[](#reboot-server)

```
/**
 * @return string
 */
$cyberlink->rebootServer();

```

##### Server Uptime

[](#server-uptime)

```
/**
 * @return string
 */
$cyberlink->uptime();

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

982d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8fe8a33f242a447ad96caae8869ad930347da9e08296dea00ca0daf4e88ecb2?d=identicon)[BurakBoz](/maintainers/BurakBoz)

---

Top Contributors

[![BurakBoz](https://avatars.githubusercontent.com/u/3030819?v=4)](https://github.com/BurakBoz "BurakBoz (8 commits)")

---

Tags

apiautomationcontrolpanelcyberpanellibraryphpwebserver

### Embed Badge

![Health badge](/badges/burakboz-cyberlink/health.svg)

```
[![Health](https://phpackages.com/badges/burakboz-cyberlink/health.svg)](https://phpackages.com/packages/burakboz-cyberlink)
```

###  Alternatives

[google/apiclient

Client library for Google APIs

9.8k191.4M991](/packages/google-apiclient)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[flat3/lodata

OData v4.01 Producer for Laravel

96320.9k](/packages/flat3-lodata)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
