Download the PHP package aksoyih/earthquakes without Composer
On this page you can find all versions of the php package aksoyih/earthquakes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aksoyih/earthquakes
More information about aksoyih/earthquakes
Files in aksoyih/earthquakes
Package earthquakes
Short Description Combines data from Kandilli, AFAD and USGS
License MIT
Informations about the package earthquakes
Eearthquakes
Features
This package makes the latest earthquake data available in an uniform format from Kandilli, AFAD and USGS sources.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage/Examples
Firstly, require the autoloader from Composer
Use Aksoyih\Earthquakes\Earthquakes()
to create and initialize a Earthquakes instance.
This package can be used to either fetch the latest earthquake data from above mentioned sources, or fetch them by a given source. To fetch earthquakes data from all sources, you can use the the following example.
To fetch earthquakes from one source, you can use the following example.
Example Data
TODO List
- [ ] Add sorting options
- [ ] Group earthquakes based on location, date and likelihood of being a single earthquake
- [ ] Add more sources
- [ ] Save data to some kind of database
- [x] Add tests
Contributing
Contributions are always welcome!
All versions of earthquakes with dependencies
guzzlehttp/guzzle Version 7.5.x-dev
guzzlehttp/promises Version 1.5
ext-curl Version *
ext-iconv Version *