Developers - PJanisio/ewelinkApiPhp GitHub Wiki

Technical stuff goes here

Here you can find my thoughts about the class and possibilities to enhance in the future.

Additionally there will be some doubts that docu doesnt tells off and maybe you can verify this :)

Project statements

  • main branch when commited used to be operative (Till now I made it :))
  • enable DEBUG = 1; in Constants to log every API requests with output and parameters to debug.log
  • index.php is a quasi-test file which helps me to check all methods and it is also a great example

Structure of project

ewelinkApiPhp/
│
├── src/
│   ├── Constants.php
│   ├── Devices.php
│   ├── Home.php
│   ├── HttpClient.php
│   ├── Token.php
│   └── Utils.php
│   └── WebSocketsClient.php
│
├── autoloader.php
└── index.php

All classes are located in src directory.

Index.php works as a gateway to API and also as a debug for all available methods.

.json files outputs will be saved by default in project_root. You can define directory in Constants.php