1. Go to this page and download the library: Download baspa/energyzero-php-api library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
baspa / energyzero-php-api example snippets
use Baspa\EnergyZero;
$prices = (new EnergyZero())->energyPrices(
startDate: '2024-01-01',
endDate: '2024-01-02',
interval: 4,
vat: true
);