PHPackages                             jaeger/solusvm-client - 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. jaeger/solusvm-client

ActiveLibrary

jaeger/solusvm-client
=====================

SolusVM PHP Api,PHP control vps reboot, shutdown, boot, status.

1.0(9y ago)6323MITPHP

Since Dec 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jae-jae/solusvm-client)[ Packagist](https://packagist.org/packages/jaeger/solusvm-client)[ RSS](/packages/jaeger-solusvm-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

solusvm-client
==============

[](#solusvm-client)

SolusVM PHP Api,PHP control vps reboot, shutdown, boot, status。－通过PHP来管理和控制VPS

可用于检测服务器状态，检测拓机并重启服务器。

Install 安装
==========

[](#install-安装)

```
composer require jaeger/solusvm-client

```

Code Example 例子
===============

[](#code-example-例子)

### 1.基本用法

[](#1基本用法)

```
$vm = new \Jaeger\SolusVm([
    //SolusVM server api url - 服务器SolusVM控制面板的API地址　
    'server_api_url' => 'https://xxxx.com/api/client/command.php',
    //API Key
    'key' => '*****',
    //API Hash
    'hash' => '*****'
]);

//reboot server - 重启服务器
$rt = $vm->reboot();
//$rt = $vm->action('reboot');

//shutdown server - 服务器关机
$rt = $vm->shutdown();

//boot server - 服务器开机
$rt = $vm->boot();

//get server status - 获取服务器状态(是否在线)
$rt = $vm->status();

$rt = $vm->shutdownAndBoot();

//Check if the server is ofline, and reboot the server if the ofline
//检测服务器是否拓机，如果拓机则重启服务器
$rt = $vm->checkAndReboot();
```

### 2.Log 记录日志

[](#2log-记录日志)

本项目使用的日志系统为`Monolog`.

see `Monolog` [documents](https://github.com/Seldaek/monolog/blob/HEAD/doc/02-handlers-formatters-processors.md) .

```
$vm = new \Jaeger\SolusVm([
    'server_api_url' => 'https://xxxx.com/api/client/command.php',
    'key' => '*****',
    'hash' => '*****',

    //log path - 日志文件路径
    'log' => './log/vm.log'
]);

//or

$logHandler = new \Monolog\Handler\StreamHandler('./log/vm.log',\Monolog\Logger::INFO);

$vm = new \Jaeger\SolusVm([
       'server_api_url' => 'https://xxxx.com/api/client/command.php',
       'key' => '*****',
       'hash' => '*****',

       //log handler
       'log' => $logHandler
]);
```

Just do it,不需要其它额外操作，这样配置后，项目就可以自动记录日志了。

Author
======

[](#author)

Jaeger

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3446d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/351bb9fcc9e4784597bdeba01667aca7dcf4f56927bb18341d20470fc3295ae6?d=identicon)[jae](/maintainers/jae)

---

Top Contributors

[![jae-jae](https://avatars.githubusercontent.com/u/5620429?v=4)](https://github.com/jae-jae "jae-jae (5 commits)")

---

Tags

SolusVM

### Embed Badge

![Health badge](/badges/jaeger-solusvm-client/health.svg)

```
[![Health](https://phpackages.com/badges/jaeger-solusvm-client/health.svg)](https://phpackages.com/packages/jaeger-solusvm-client)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.3M25](/packages/googleads-googleads-php-lib)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)

PHPackages © 2026

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