PHPackages                             sukohi/order-by-distance - 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. [Database &amp; ORM](/categories/database)
4. /
5. sukohi/order-by-distance

ActiveLibrary[Database &amp; ORM](/categories/database)

sukohi/order-by-distance
========================

A Laravel package that manages `ORDER BY` clause sorting by distance.

1.0.1(8y ago)012MITPHP

Since Oct 31Pushed 8y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/OrderByDistance)[ Packagist](https://packagist.org/packages/sukohi/order-by-distance)[ RSS](/packages/sukohi-order-by-distance/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

OrderByDistance
===============

[](#orderbydistance)

A Laravel package that manages `ORDER BY` clause sorting by distance.
(This package is maintained under L5.5.)

Installation
============

[](#installation)

Execute the following composer command.

```
composer require sukohi/order-by-distance:1.*

```

Preparation
===========

[](#preparation)

This package is `Trait`. So please add `OrderByDistanceTrait` to your model like so.

```
