Download the PHP package pjanisio/ewelink-api-php without Composer

On this page you can find all versions of the php package pjanisio/ewelink-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?
pjanisio/ewelink-api-php
Rate from 1 - 5
Rated 5.00 based on 1 reviews

Informations about the package ewelink-api-php

eWeLink API PHP – Connect to Sonoff / eWeLink devices

Packagist PHP >= 7.4 CI

ewelink-api-php lets you talk to your eWeLink–enabled devices (Sonoff, KingArt, etc.) directly from PHP. It wraps the official HTTP & WebSocket endpoints, handles OAuth, and gives you a neat object‑oriented façade.


📦 Installation

Composer installs the library, creates vendor/autoload.php, and you’re ready to go.


🚀 Quick‑start

Full examples live in the Wiki.


✅ Features

Area What you can do
Discovery • Fetch all devices in one call
• Search by deviceid or human name
• Persist raw data as devices.json
Status • Read any single or multi params live (switch, voltage, power, …)
• Grab all live params at once
• Check if a device is online
Control • Set one or many params (HTTP)
• Multi‑channel helpers (switches[n])
• WebSocket realtime control
Monitoring • Live power metrics (voltage / current / power)
• Device history endpoint (/v2/device/history)
Maintenance • Force wake‑up (handshake + echo params)
Dev tools • PSR‑4 autoloading via Composer
DEBUG mode – full request/response log to debug.log

🖥️ Demo Monitoring App

Need an out‑of‑the‑box dashboard? Check the companion project ewelinkapiphp‑device‑monitoring – asynchronous UI, HTTP + WS under the hood.

Monitoring screenshot


🗂 Documentation


⚙️ Requirements


📝 License

MIT – do what you want, just keep the copyright notice.


Happy hacking & enjoy your smart devices!


All versions of ewelink-api-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
ext-curl Version *
ext-openssl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pjanisio/ewelink-api-php contains the following files

Loading the files please wait ....