Download the PHP package aternus/geonames-client without Composer

On this page you can find all versions of the php package aternus/geonames-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package geonames-client

GeoNames Client

A GeoNames API Client for PHP.

validate

Install with confidence 🛡️

Quick Start

An overview of available API parameters for each endpoint is available here.

Client Options

Supported client options:

  1. username: GeoNames username.
  2. token?: GeoNames token (i.e. premium user key).
  3. api_url?: URL of the GeoNames web service.
  4. connect_timeout?: HTTP Client connection timeout. The number of seconds to wait while trying to connect to a server (default 0, wait indefinitely).
  5. fallback_api_url: COMING SOON.
  6. fallback_api_url_trigger_count: COMING SOON.

Example: Providing options during instantiation

Example: Changing options during runtime

Why?

This library will allow you to get better insights into the world.

As a developer and a multilingual speaker I've always felt that localization was put on last priority since it was so time-consuming and error-prone.

Getting statistics for each country is a painful process that requires understanding the different ISO standards, and even then you're still left to piece the puzzle together yourself.

Luckily, GeoNames have been collecting statistical data about the world for the past few decades and offers that data via their API.

The aim of this library is to provide a single source of truth for country (ISO-3166), language (ISO-639-1), and other locale related statistical data, so that other developers can write better software which is up-to-date with the latest changes in the world.

Installation

If you're using Composer to manage dependencies:

Then, after running composer update, you can load the class using Composer's autoloading:

Otherwise, you can simply require the file directly:

And in either case, I'd suggest using an alias.

Other Useful Libraries

Please make sure to implement some kind of cache mechanism in order to save yourself time, bandwidth and be respectful to GeoNames for providing all that data for free.

If you're making heavy use of the statistical data, you can subscribe to their Premium Data plan.

License

Released under the MIT License - see LICENSE.md for details.

Credits

David Jean Louis for the PEAR package which inspired this GeoNames API Client.


All versions of geonames-client with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
ext-curl Version *
ext-json Version *
ext-xml Version *
guzzlehttp/guzzle Version 7.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aternus/geonames-client contains the following files

Loading the files please wait ....