PHPackages                             ricorocks-digital-agency/giveaninch - 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. ricorocks-digital-agency/giveaninch

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

ricorocks-digital-agency/giveaninch
===================================

A package that simplifies calculations around distance and metrics.

1.1.0(5y ago)22.4kMITPHPPHP ^7.1|^8.0

Since Nov 10Pushed 5y agoCompare

[ Source](https://github.com/Ricorocks-Digital-Agency/giveaninch)[ Packagist](https://packagist.org/packages/ricorocks-digital-agency/giveaninch)[ Docs](https://github.com/ricorocks-digital-agency/giveaninch)[ RSS](/packages/ricorocks-digital-agency-giveaninch/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

GiveAnInch
==========

[](#giveaninch)

A Laravel package that provides geographic distance calculations between points.

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

[](#installation)

You can install the package via composer:

```
composer require ricorocks-digital-agency/giveaninch
```

Usage
-----

[](#usage)

Using the package is simple via the `GiveAnInch` facade.

### Get the distance in KM between two points

[](#get-the-distance-in-km-between-two-points)

```
GiveAnInch::from(0, 0)->to(0, 0)->getDistance();
```

### Check if two coordinates are within a given radius of each other

[](#check-if-two-coordinates-are-within-a-given-radius-of-each-other)

```
GiveAnInch::from(0, 0)->to(0, 0)->isWithin(10);
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Luke Downing](https://github.com/ricorocks-digital-agency)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~41 days

Total

3

Last Release

1927d ago

PHP version history (2 changes)1.0PHP ^7.1

1.1.0PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/139db346fa173a79481af05b0455e2e8ad7d2ab594c7f53bde3522a3dfeeaf25?d=identicon)[96downlu](/maintainers/96downlu)

---

Top Contributors

[![lukeraymonddowning](https://avatars.githubusercontent.com/u/12202279?v=4)](https://github.com/lukeraymonddowning "lukeraymonddowning (6 commits)")

---

Tags

ricorocks-digital-agencygiveaninch

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ricorocks-digital-agency-giveaninch/health.svg)

```
[![Health](https://phpackages.com/badges/ricorocks-digital-agency-giveaninch/health.svg)](https://phpackages.com/packages/ricorocks-digital-agency-giveaninch)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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