https://github.com/gopalindians/apod
https://github.com/gopalindians/apod
apod nasa-api nasa-apod php72
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gopalindians/apod
- Owner: gopalindians
- Created: 2019-03-24T11:11:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-24T13:47:07.000Z (over 7 years ago)
- Last Synced: 2025-03-14T05:11:14.015Z (over 1 year ago)
- Topics: apod, nasa-api, nasa-apod, php72
- Language: PHP
- Size: 1000 Bytes
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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();
```