Download the PHP package dekiakbar/bmkg-api-php-client without Composer
On this page you can find all versions of the php package dekiakbar/bmkg-api-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dekiakbar/bmkg-api-php-client
More information about dekiakbar/bmkg-api-php-client
Files in dekiakbar/bmkg-api-php-client
Package bmkg-api-php-client
Short Description php api client for https://data.bmkg.go.id/
License MIT
Homepage https://github.com/dekiakbar/bmkg-api-php-client
Informations about the package bmkg-api-php-client
BMKG API PHP Client
This Project is used for scrapping data from https://data.bmkg.go.id/
Warning
It is mandatory to list BMKG (Meteorology, Climatology and Geophysics Agency) as data sources and display them on your application or system.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
Before you install this package, make sure that the requirements below are met
Installing
To install this package, please follow the below instruction
Install via composer using below command
And you're done, enjoy it :)
Example Usage
Forecast
-
Get all forecast data by province, this method will return all city data including Temperature,Humidity,Wind Speed,Wind Direction and Weather, this method will return data type : stdclass object, if you did not passing any parameter to execute() method then it will return data for all province.
-
Get available area code
-
Get city list
-
Get data for specific city
-
Get data list
- Get specific data by Id, the data id can not be null, use getDataList() to get available data id.
Earthquake
-
Get earthquake data from bmkg open data, this method will return data type : stdclass object, if you did not passing any parameter to execute() method then it will return data as same as autogempa code.
- Get available code list
Built With
- PHP - The web scripting language used
- Packagist - Composer package repository
- BMKG - Used as data source
Contributing
Please fork this repository, and create new pull request if you want to contribute on this project.or open a new issue if you find something wrong with this project.
Authors
- Deki Akbar - Initial work
See also the list of contributors who participated in this project.
License
All versions of bmkg-api-php-client with dependencies
ext-simplexml Version *