An open API service indexing awesome lists of open source software.

https://github.com/jmrashed/geolocation

The geolocation package will provide user location
https://github.com/jmrashed/geolocation

Last synced: 10 months ago
JSON representation

The geolocation package will provide user location

Awesome Lists containing this project

README

          

# Geolocation From Package

[![Issues](https://img.shields.io/github/issues/jmrashed/geolocation.svg?style=flat-square)](https://github.com)
[![Stars](https://img.shields.io/github/stars/jmrashed/geolocation.svg?style=flat-square)](https://github.com)
[![License](https://img.shields.io/github/license/jmrashed/geolocation.svg?style=flat-square)](https://github.com)
[![Forks](https://img.shields.io/github/forks/jmrashed/geolocation.svg?style=flat-square)](https://github.com)

Laravel package to get the details about Region, City and Country for a given IP Address. It also provides the details about the location of the user.

## Introduction

- geolocation package will provide user location information.
- It will provide user location information.

## Installation

```bash
composer require jmrashed/geolocation
```

## Published package

```bash
php artisan vendor:publish --provider="Jmrashed\Geolocation\GeolocationServiceProvider" --tag='geolocation'
```

## Usage

```bash
$geolocation->getLocation($latitude, $longitude);
$geolocation->getLocationByIp($ip);
```

## Example

```bash
$geolocation = new GeolocationController();
$geolocation->getLocation($latitude, $longitude);
```

## License

MIT

## Author

Rashed Zaman

## Repository

https://github.com/jmrashed/geolocation

## Contributors

Rashed Zaman

## Changelog

```bash
v1.0.0
- Initial release.
```