PHPackages                             designcise/bitframe-geolocation - 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. designcise/bitframe-geolocation

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

designcise/bitframe-geolocation
===============================

GeoLocation middleware for BitFrame microframework

1.0.0(7y ago)025MITPHPPHP &gt;=7.1.0

Since May 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/designcise/bitframe-geolocation)[ Packagist](https://packagist.org/packages/designcise/bitframe-geolocation)[ RSS](/packages/designcise-bitframe-geolocation/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

BitFrame\\Locale\\GeoLocation
=============================

[](#bitframelocalegeolocation)

Geo Location wrapper class to fetch user geo data as a middleware.

### Installation

[](#installation)

See [installation docs](https://www.bitframephp.com/middleware/locale/geolocation) for instructions on installing and using this middleware.

### Usage Example

[](#usage-example)

```
use \BitFrame\Locale\GeoLocation;
use \BitFrame\Locale\GeoLocationData;

require 'vendor/autoload.php';

$app = new \BitFrame\Application;

$app->run([
    /* In order to output the http response from the middlewares,
     * make sure you include a response emitter middleware, for example:
     * \BitFrame\Message\DiactorosResponseEmitter::class, */
    GeoLocation::class,
    function($request, $response, $next) {
        $loc = $request->getAttribute(GeoLocationData::class);

        $response->getBody()->write('' . print_r($loc, true) . '');

        return $response;
    }
]);

```

### Tests

[](#tests)

To execute the test suite, you will need [PHPUnit](https://phpunit.de/).

### Contributing

[](#contributing)

- File issues at
- Issue patches to

### Documentation

[](#documentation)

Documentation is available at:

-

### License

[](#license)

Please see [License File](LICENSE.md) for licensing information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2919d ago

### Community

Maintainers

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

---

Top Contributors

[![designcise](https://avatars.githubusercontent.com/u/6676615?v=4)](https://github.com/designcise "designcise (3 commits)")

---

Tags

geolocationmiddlewarephppsr-15psr-7

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/designcise-bitframe-geolocation/health.svg)

```
[![Health](https://phpackages.com/badges/designcise-bitframe-geolocation/health.svg)](https://phpackages.com/packages/designcise-bitframe-geolocation)
```

###  Alternatives

[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.4k423.9k30](/packages/mcp-sdk)[geocoder-php/google-maps-provider

Geocoder GoogleMaps adapter

18517.9M44](/packages/geocoder-php-google-maps-provider)[geocoder-php/plugin

Plugins to Geocoder providers

705.1M2](/packages/geocoder-php-plugin)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73142.3k25](/packages/jaxon-php-jaxon-core)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[geocoder-php/mapbox-provider

Geocoder Mapbox adapter

111.0M2](/packages/geocoder-php-mapbox-provider)

PHPackages © 2026

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