PHPackages                             skapelapp/ipstack-laravel - 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. skapelapp/ipstack-laravel

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

skapelapp/ipstack-laravel
=========================

Get information from a visitor's IP address using IPStack and use it in your Laravel project.

v1.0.3(2y ago)0216—0%1MITPHPPHP &gt;=8.0

Since Dec 8Pushed 2y agoCompare

[ Source](https://github.com/skapelapp/ipstack-laravel)[ Packagist](https://packagist.org/packages/skapelapp/ipstack-laravel)[ Docs](https://skapel.com/packages/ipstack-laravel)[ RSS](/packages/skapelapp-ipstack-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

IPStack Laravel Package
=======================

[](#ipstack-laravel-package)

[![Packagist](https://camo.githubusercontent.com/1cacc5564c1f0171eb34686245c70c7514cec899ea10ea58495a74c410e00c86/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736b6170656c6170702f6970737461636b2d6c61726176656c)](https://packagist.org/packages/skapelapp/ipstack-laravel)[![Packagist Downloads](https://camo.githubusercontent.com/25fca3ca0eecceb481c0698d4ffd865009acd2d99c4ebbe2e7fd925f818ba04d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736b6170656c6170702f6970737461636b2d6c61726176656c)](https://packagist.org/packages/skapelapp/ipstack-laravel)[![GitHub](https://camo.githubusercontent.com/003b601614364304b312b22ba87a39f552997bbd8adf5c6800fb49194e56a870/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736b6170656c6170702f6970737461636b2d6c61726176656c)](https://camo.githubusercontent.com/003b601614364304b312b22ba87a39f552997bbd8adf5c6800fb49194e56a870/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736b6170656c6170702f6970737461636b2d6c61726176656c)

The "skapelapp/ipstack-laravel" package allows you to retrieve visitor information based on their IP address using the IPStack service in your Laravel projects.

- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Testing](#testing)
- [Updates](#updates)
- [License](#license)

Requirements
------------

[](#requirements)

- PHP: ^8.0
- Laravel: ^10.0
- IPStack API Key: ()

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

[](#installation)

You can add the package to your Laravel project using Composer:

```
composer require skapelapp/ipstack-laravel
```

Configuration
-------------

[](#configuration)

**1. Set your IPStack API Key in your .env file:**

```
IPSTACK_API_KEY=your-ipstack-api-key
```

**2. Run the following command to publish the configuration:**

```
php artisan vendor:publish --tag=ipstack-laravel-config
```

This command will create the config/ipstack.php file. You can check and modify your API key in this file.

**3. Service Provider and Alias Configuration:**

Add the service provider and aliases in your config/app.php file:

```
'providers' => [
    // ...
    Skapelapp\IpstackLaravel\IpstackLaravelServiceProvider::class,
],

'aliases' => [
    // ...
    'IPStack' => Skapelapp\IpstackLaravel\Facades\IPStack::class,
],
```

Usage
-----

[](#usage)

You can use the IPStack class to interact with the package:

```
use Skapelapp\IPStackLaravel\IPStack;

// Create an instance of the IPStack class and provide your API key
$apiKey = config('ipstack.api_key');
$ipstack = new IPStack($apiKey);

// Use the getInfo method to retrieve information
$ipInfo = $ipstack->getInfo();

// Make use of the returned information
// dd($ipInfo);
```

Testing
-------

[](#testing)

To run the package tests:

```
composer test
```

Updates
-------

[](#updates)

To update the package, use the following command:

```
composer update skapelapp/ipstack-laravel
```

License
-------

[](#license)

This package is licensed under the MIT License. For detailed information, see the [LICENSE](https://github.com/skapelapp/ipstack-laravel/blob/main/LICENSE) file.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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 ~0 days

Total

4

Last Release

884d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43732866da78227e065ca45656ff756dde53c19fd8b31addb27f569268479dd9?d=identicon)[skapelapp](/maintainers/skapelapp)

---

Tags

laravelgeolocationipstackgoip

### Embed Badge

![Health badge](/badges/skapelapp-ipstack-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/skapelapp-ipstack-laravel/health.svg)](https://phpackages.com/packages/skapelapp-ipstack-laravel)
```

###  Alternatives

[torann/geoip

Support for multiple Geographical Location services.

2.2k14.2M76](/packages/torann-geoip)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)

PHPackages © 2026

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