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 3w 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 62% 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

1978d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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