andrewcarteruk / astronomy-picture-of-the-day
A wrapper for the Astronomy Picture of the Day API provided by NASA.
Requires
- container-interop/container-interop: ^1.1
- guzzlehttp/guzzle: ^6.1
- intervention/image: ^2.3
This package is auto-updated.
Last update: 2024-12-19 14:24:54 UTC
README
This package is used by AstroSplash to retrieve images from the NASA Astronomy Picture of the Day API.
Check the AstroSplash repository to see this API wrapper in use!
Check the NASA API website to see how to use their API directly.
Description
On its own, the NASA API does not provide thumbnails or return more than one result per request.
This wrapper provides a thin layer above the NASA API which includes these features. It does this by maintaining a store of thumbnails and JSON files in a public web root.
The methods that update, query and clear the store are documented with annotations in the API.php
and APIInterface.php
files in the src
directory.