An open API service indexing awesome lists of open source software.

https://github.com/gopalindians/apod


https://github.com/gopalindians/apod

apod nasa-api nasa-apod php72

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

`Apod` : Astronomy Picture of the Day

---------------

Example

```php
$n = new Apod('YOUR_API_KEY');
$fetch = $n->fetch();
echo $fetch->getUrl() . PHP_EOL;
echo $fetch->getExplanation() . PHP_EOL;
echo $fetch->getTitle() . PHP_EOL;
echo $fetch->getMediaType() . PHP_EOL;
```

OR

```php
$n = new Apod('YOUR_API_KEY');
$url = $n->fetch()->getUrl();
$title = $n->fetch()->getTitle();
```