Download the PHP package nawrasbukhari/geo-content without Composer
On this page you can find all versions of the php package nawrasbukhari/geo-content. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nawrasbukhari/geo-content
More information about nawrasbukhari/geo-content
Files in nawrasbukhari/geo-content
Package geo-content
Short Description GeoContent is a Laravel package that provides a simple way to manage your content based on the user's location.
License MIT
Homepage https://github.com/NawrasBukhari/GeoContent
Informations about the package geo-content
Laravel Geo-Content Package
The Laravel Geo-Content package provides a convenient way to fetch geolocation information using the FreeIPAPI service. This package is designed to retrieve geolocation data for IP addresses, including details such as country name, country code, continent, and more.
Installation
You can publish the config file with:
This is the contents of the published config file:
Usage
Show content only to users from the United States
Allowing Content for Specific Continents Similarly, you can use the continent method to display content exclusively to users from particular continents:
Disallowing Content for Specific Countries
You can use the onlyShowInCountry()
or onlyShowInCountryCode()
method to display content to users from specific country
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of geo-content with dependencies
illuminate/contracts Version ^10.0
spatie/laravel-package-tools Version ^1.14.0
ext-curl Version *