A simple Object Oriented wrapper for GeoNames API, written with PHP.
This project is a work in progress.
- PHP >= 7.1
- GeoNames Account
- (optional) PHPUnit to run tests.
You can install the package via composer:
composer require grayloon/geonames
An overview of available API parameters for each endpoint is available here.
$geonames = new \Grayloon\Geonames('your_username');
$result = $geonames->postalCodeSearch([
'country' => 'US',
'postalcode' => '47579',
]);
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email webmaster@grayloon.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.