Skip to content

Commit

Permalink
Improve README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Holicz committed Mar 30, 2020
1 parent 081120a commit feea1b6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
# Installation
```
```bash
composer require holicz/pvgis
```

# Requirements
* PHP >= 7.4

# Usage
```
```php
<?php

use holicz\PVIGS\PVGIS;
use holicz\PVGIS\PVGIS;
use holicz\PVGIS\Adapter\PvgisAdapter;

$latitude = '50.0898689';
$longitude = '14.4000936';

$pvigs = new PVGIS();
$pvgis = new PVGIS(new PvgisAdapter());
$electricityProduction = $pvgis->getElectricityProduction($latitude, $longitude);

// Yearly sum of production
Expand Down

0 comments on commit feea1b6

Please sign in to comment.