zoilomora / iberdrola
Communication with the Iberdrola API
Installs: 76
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 6
Forks: 2
Open Issues: 1
pkg:composer/zoilomora/iberdrola
Requires
- php: >=7.0
- ext-json: *
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2025-10-17 08:38:19 UTC
README
This library aims to help make integrations with the Iberdrola API.
Installation
- Install via composer
composer require zoilomora/iberdrola
Example
<?php use ZoiloMora\Iberdrola\Iberdrola; $limit = 3.4; // Hired potency (kW) $iberdrola = new Iberdrola('test@test.com', '123456'); $reading = $iberdrola->getReading(); $floatValue = floatval($reading->valMagnitud); if (($floatValue/1000) >= $limit) { // Send notification }
You can see more in the examples folder.
License
Licensed under the MIT license
Read LICENSE for more information