PHPackages                             augustofagioli/ewelinkapiphp - 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. augustofagioli/ewelinkapiphp

ActiveLibrary[API Development](/categories/api)

augustofagioli/ewelinkapiphp
============================

API connector for Sonoff/eWeLink devices

04PHP

Since Jul 7Pushed 10mo agoCompare

[ Source](https://github.com/augustofagioli/ewelinkApiPhp)[ Packagist](https://packagist.org/packages/augustofagioli/ewelinkapiphp)[ RSS](/packages/augustofagioli-ewelinkapiphp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

eWeLink API PHP
===============

[](#ewelink-api-php)

🔗 [Download latest release](https://github.com/PJanisio/ewelinkApiPhp/releases)

Install by composer
-------------------

[](#install-by-composer)

`composer require pjanisio/ewelink-api-php`

eWeLink API PHP is a connector for Sonoff / eWeLink devices. This library allows you to interact with your eWeLink-enabled devices from your browser.

Requirements
------------

[](#requirements)

- PHP 7.4+

Current features
----------------

[](#current-features)

- get all devices list with their parameters using **deviceId** or **deviceName** from ewelink app
- saving devices data and other outputs from API to **.json**
- search for **any value** of each device (f.e switch status, productName, MAC etc.)
- set any parameter/state of device using **HTTP gateway** or **websockets**
- set parameter for **multi-channel** devices (like 4CH Pro)
- update power parameters like **current, voltage, power** for electricity monitoring devices
- debug all requests and responses to **debug.log**

Documentation
-------------

[](#documentation)

Go to [Wiki Pages](https://github.com/PJanisio/ewelinkApiPhp/wiki) to get started read about possible methods.

Example
-------

[](#example)

This is a single case example to turn on device.

Look at [Wiki Pages](https://github.com/PJanisio/ewelinkApiPhp/wiki) to get knowledge of how to start and other methods.

```
