Download the PHP package data-values/geo without Composer

On this page you can find all versions of the php package data-values/geo. 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 geo

DataValues Geo

Small library for parsing, formatting and representing coordinates. This library supports multiple coordinate formats, it is well tested, and it is used by the software behind Wikipedia and Wikidata.

GitHub Workflow Status Code Coverage

On Packagist: Latest Stable Version Download count

Usage

To parse a string to a LatLongValue object you use one of the coordinate parsers.

These parsers are provided:

To turn a coordinate object into a string you use one of the coordinate formatters.

These formatters are provided:

To represent a set of coordinates you use one of the Value Objects.

LatLongValue has a float latitude and longitude. GlobeCoordinateValue wraps LatLongValue and adds a precision and a globe identifier.

The supported coordinate formats are:

The parsers and formatters allow you to customize the used symbols for degrees, minutes and seconds and to change the letters used to indicate direction (N, E, S, W).

Requirements

Geo 4.x: PHP 7.1 or later (tested with PHP 7.1 up to PHP 7.4)

Geo 3.x: PHP 5.5 or later (tested with PHP 5.5 up to PHP 7.4 and HHVM)

Installation

To add this package as a local, per-project dependency to your project, simply add a dependency on data-values/geo to your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on version 4.x of this package:

Running the tests

For tests only

composer test

For style checks only

composer cs

For a full CI run

composer ci

Authors

DataValues Geo is based upon and contains a lot of code written by Jeroen De Dauw for the Maps and Semantic MediaWiki projects.

Significant contributions where made by the Wikidata team, as Wikimedia Germany employees for the Wikidata project.

Release notes

4.4.0 (2022-10-21)

4.3.0 (2021-04-21)

4.2.3 (2021-04-23)

4.2.2 (2021-01-20)

4.2.1 (2019-12-18)

4.2.0 (2019-09-20)

4.1.0 (2018-10-29)

4.0.1 (2018-08-10)

3.0.1 (2018-08-01)

2.1.2 (2018-08-01)

4.0.0 (2018-07-13)

3.0.0 (2018-03-20)

2.1.1 (2017-08-09)

2.1.0 (2017-08-09)

2.0.1 (2017-06-26)

2.0.0 (2017-05-09)

1.2.2 (2017-03-14)

1.2.1 (2016-12-16)

1.2.0 (2016-11-11)

1.1.8 (2016-10-12)

1.1.7 (2016-05-25)

1.1.6 (2016-04-02)

1.1.5 (2015-12-28)

1.1.4 (2014-11-25)

1.1.3 (2014-11-19)

1.1.2 (2014-11-18)

1.1.1 (2014-10-21)

1.1.0 (2014-10-09)

1.0.0 (2014-07-31)

0.2.0 (2014-07-07)

0.1.2 (2014-01-22)

0.1.1 (2013-11-30)

0.1.0 (2013-11-17)

Initial release with these features:

Links


All versions of geo with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
data-values/data-values Version ^3.0|^2.0|^1.0|~0.1
data-values/interfaces Version ^1.0.0|^0.2.0
symfony/polyfill-php80 Version ^1.18.1
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 data-values/geo contains the following files

Loading the files please wait ....