PHPackages                             mstroink/solax-inverter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mstroink/solax-inverter

ActiveLibary[Utility &amp; Helpers](/categories/utility)

mstroink/solax-inverter
=======================

Collects data from Solax Inverter

v1.1.0(6y ago)03PHPPHP &gt;=7.1

Since Jul 15Pushed 6y agoCompare

[ Source](https://github.com/mstroink/solax-inverter)[ Packagist](https://packagist.org/packages/mstroink/solax-inverter)[ RSS](/packages/mstroink-solax-inverter/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

 [ ![Build Status](https://camo.githubusercontent.com/f009105b52efe5d33226835ff8c948e2f057588507f8b63922e8c50adb0a83d2/68747470733a2f2f7472617669732d63692e6f72672f6d7374726f696e6b2f736f6c61782d696e7665727465722e7376673f6272616e63683d6d6173746572) ](https://travis-ci.org/mstroink/solax-inverter) [ ![Coverage Status](https://camo.githubusercontent.com/b9772a0c5c5f10bb1098c4e45f6af36c97bdd12d858049c716b1559b9c9bd660/68747470733a2f2f636f6465636f762e696f2f67682f6d7374726f696e6b2f736f6c61782d696e7665727465722f6272616e63682f6d61737465722f67726170682f62616467652e737667) ](https://codecov.io/gh/mstroink/solax-inverter) [ ![Stable](https://camo.githubusercontent.com/353340d25d32ebaf0a3c0af052cdea0a57d7af82bb0b748235ee430303d00bdd/68747470733a2f2f706f7365722e707567782e6f72672f6d7374726f696e6b2f736f6c61782d696e7665727465722f762f737461626c652e737667) ](https://packagist.org/packages/mstroink/steca-grid) [ ![php Version](https://camo.githubusercontent.com/2faf6c3195e9b482351838a482b4d39fcefde5bcdd00ff6248c94e41ea639d3c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d253230372e312d3838393242462e737667) ](https://php.net)

Solax Inverter
==============

[](#solax-inverter)

Simple PHP Client for reading realtime data from the Solax inverter

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Support](#support)

Installation
------------

[](#installation)

Via Composer: If you just want to get started quickly you should run the following:

```
$ composer require mstroink/solax-inverter php-http/guzzle6-adapter php-http/message
```

Why `php-http/guzzle6-adapter php-http/message`? We are decoupled from any HTTP messaging client with help by [HTTPlug](http://httplug.io/). Read about clients in the [HTTPlug docs](http://docs.php-http.org/en/latest/httplug/users.html).

Usage
-----

[](#usage)

Ensure inverter is connected to your network. [Guide (pdf)](https://www.solaxpower.com/wp-content/uploads/2017/01/WiFi-Set-UP-Guide%C2%A3%C2%AESolaX-Portal.pdf)Confirm datastream from inverter by checking you can access the following URL and get a response.

##### Default adapter

[](#default-adapter)

Initializing Inverter client with guzzle6-adapter and some default settings (timeout etc.)

```
require 'vendor/autoload.php';

use MStroink\Solax\Inverter;

$inverter = Inverter:create('192.168.178.10');
```

##### Other adapter

[](#other-adapter)

Here is a list of all officially supported clients and adapters by HTTPlug:

Note the timeout: At night there is not enough sunlight to power the inverter.

```
require 'vendor/autoload.php';

use MStroink\Solax\Http\HttpClientConfigurator;
use MStroink\Solax\Inverter;
use Cake\Http\Client as CakeClient;

$clientConfigurator = (new HttpClientConfigurator())
    ->setHost('192.168.178.10');
    ->setClient(new CakeClient(['timeout' => 10]));

$inverter = new Inverter($clientConfigurator)
```

##### Response

[](#response)

```
try {
    $response = $inverter->getRealTimeData();

    echo $response->Inverter->getYieldToday() . "\n";
    echo $response->Inverter->getYieldTotal() . "\n";
    echo $response->Inverter->getInnerTemperature() . "\n";

    $response->Grid->getCurrent();
    $response->Grid->getExported();
    $response->Grid->getFeedInPower();
    $response->Grid->getFrequency();
    $response->Grid->getImported();
    $response->Grid->getPower();
    $response->Grid->getVoltage();

    $response->Meta->getMethod();
    $response->Meta->getSerialNumber();
    $response->Meta->getStatus();
    $response->Meta->getType();
    $response->Meta->getVersion();

    $response->Pv->getPv1Current();
    $response->Pv->getPv1Power();
    $response->Pv->getPv1Voltage();
    $response->Pv->getPv2Current();
    $response->Pv->getPv2Power();
    $response->Pv->getPv2Voltage();

    $response->toArray();
} catch (HttpServerException $e) {
    //inverter is offline?
}
```

Tests
-----

[](#tests)

```
vendor/bin/phpunit

```

Support
-------

[](#support)

Please [open an issue](https://github.com/mstroink/solax-inverter/issues/new) for support.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Every ~3 days

Total

2

Last Release

2486d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/48649879199862f81e23690807c3224ae4fbd7a99ad9f49d4fc8383482a5d0d3?d=identicon)[mstroink](/maintainers/mstroink)

---

Top Contributors

[![mstroink](https://avatars.githubusercontent.com/u/2270573?v=4)](https://github.com/mstroink "mstroink (9 commits)")

---

Tags

phpclientsolarsolaxinverter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mstroink-solax-inverter/health.svg)

```
[![Health](https://phpackages.com/badges/mstroink-solax-inverter/health.svg)](https://phpackages.com/packages/mstroink-solax-inverter)
```

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[mozex/anthropic-php

Anthropic PHP is a supercharged community-maintained PHP API client that allows you to interact with Anthropic API.

46365.1k13](/packages/mozex-anthropic-php)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[graze/telnet-client

Telnet client written in PHP

50233.9k4](/packages/graze-telnet-client)[dhope0000/lxd

PHP-based API wrapper for LXD REST API.

136.2k](/packages/dhope0000-lxd)

PHPackages © 2026

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