Download the PHP package skapelapp/ipstack-laravel without Composer
On this page you can find all versions of the php package skapelapp/ipstack-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download skapelapp/ipstack-laravel
More information about skapelapp/ipstack-laravel
Files in skapelapp/ipstack-laravel
Package ipstack-laravel
Short Description Get information from a visitor's IP address using IPStack and use it in your Laravel project.
License MIT
Homepage https://skapel.com/packages/ipstack-laravel
Informations about the package ipstack-laravel
IPStack Laravel Package
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
- Installation
- Configuration
- Usage
- Testing
- Updates
- License
Requirements
- PHP: ^8.0
- Laravel: ^10.0
- IPStack API Key: (https://ipstack.com/)
Installation
You can add the package to your Laravel project using Composer:
Configuration
1. Set your IPStack API Key in your .env file:
2. Run the following command to publish the configuration:
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:
Usage
You can use the IPStack class to interact with the package:
Testing
To run the package tests:
Updates
To update the package, use the following command:
License
This package is licensed under the MIT License. For detailed information, see the LICENSE file.