PHPackages                             antonamosov/laravel-getting-locations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. antonamosov/laravel-getting-locations

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

antonamosov/laravel-getting-locations
=====================================

A getting of JSON-encoded locations data stored in predefined format.

015PHP

Since Dec 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/antonamosov/laravel-getting-locations)[ Packagist](https://packagist.org/packages/antonamosov/laravel-getting-locations)[ RSS](/packages/antonamosov-laravel-getting-locations/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Getting Locations
=========================

[](#laravel-getting-locations)

An laravel package for a getting of locations using custom service.

Installation
------------

[](#installation)

Require this package with composer using the following command:

```
$ composer require "antonamosov/laravel-getting-locations @dev"
```

After updating composer, add the service provider to the providers array in config/app.php

```
Antonamosov\LaravelGettingLocations\LaravelGettingLocationsServiceProvider::class,
```

And add the alias to aliases array in config/app.php

```
'GettingLocations' => Antonamosov\LaravelGettingLocations\Facades\LaravelGettingLocations::class,
```

Publish the config file to change implementations, select service and API key:

```
$ php artisan vendor:publish --provider="Antonamosov\LaravelGettingLocations\LaravelGettingLocationsServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

```
use LaravelGettingLocations;

$response = LaravelGettingLocations::getLocations([
        'name' => 'Moscow City',
        'address' => 'Lenina',
        'postalCode' => '185000',
        'country' => 'Russia',
    ]);

if ($response->success) {
        foreach ($response->data->locations as $location) {
            echo $location->name . "\n";
            echo $location->coordinates->lat . "\n";
            echo $location->coordinates->long . "\n\n";
        }
    }
```

Testing
-------

[](#testing)

```
./vendor/bin/phpunit vendor/antonamosov/laravel-getting-locations/tests/LaravelGettingLocationsTest.php
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb7ac9ee38062c6eaf2f91d4a938058eed0050a56e13838f99cd2ffd9dc6e24a?d=identicon)[antonamosov](/maintainers/antonamosov)

---

Top Contributors

[![antonamosov](https://avatars.githubusercontent.com/u/18592462?v=4)](https://github.com/antonamosov "antonamosov (7 commits)")

### Embed Badge

![Health badge](/badges/antonamosov-laravel-getting-locations/health.svg)

```
[![Health](https://phpackages.com/badges/antonamosov-laravel-getting-locations/health.svg)](https://phpackages.com/packages/antonamosov-laravel-getting-locations)
```

###  Alternatives

[fzaninotto/streamer

Object-oriented API to PHP streams

26417.3k1](/packages/fzaninotto-streamer)[minime/brasil-endereco

Brasil/Endereco é um componente de consulta que facilita a obtenção de endereços a partir do site dos correios

163.1k](/packages/minime-brasil-endereco)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
