Download the PHP package devrabiul/laravel-geo-genius without Composer

On this page you can find all versions of the php package devrabiul/laravel-geo-genius. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-geo-genius

πŸ“¦ Laravel GeoGenius β€” Timezone, Geolocation, Multilingual Toolkit & Country Picker for Laravel

Laravel GeoGenius is a lightweight, flexible package for Laravel applications that handles:

It automatically retrieves detailed IP-based location data, detects the user’s timezone, sets the correct locale, and even initialises a fully-functional phone input field with country picker and validation β€” all seamlessly integrated into your app.

βœ… Fully compatible with Livewire, works via cookies or headers, and enables a truly global-ready Laravel application.

Latest Stable Version Total Downloads Monthly Downloads GitHub license Buy us a tree GitHub Repo stars

Featured On

I’m proud to share that GeoGenius was featured on Laravel News in their article: β€œGeoGenius Package for Laravel”.
Read it here: GeoGenius Package for Laravel β€” Laravel News


πŸš€ Live Demo

πŸ‘‰ Try the Live Demo

Live Demo Thumbnail


✨ Key Features

Under the hood, it leverages reliable IP geolocation APIs like ipwho.is and ip-api.com with caching for optimal performance.


πŸ“¦ Installation

Publish the configuration and migration stub:


⚑ Quick Start

Use Laravel GeoGenius in two ways:

  1. βœ… Global Helper β€” laravelGeoGenius() (recommended)
  2. 🧰 Service Class β€” manually instantiate GeoLocationService

Global Helper

Service Class


🌐 Multilingual & Translation

Built-in auto translation and number conversion:

Configure in config/laravel-geo-genius.php:

πŸ“ Translation Artisan Commands

Laravel GeoGenius provides a set of helpful artisan commands to manage languages and translations easily:

Command Description
php artisan geo:add-language {locale} Create a new language directory with starter files (e.g. en, bn).
php artisan geo:translations-generate --locale={locale} Scan your app for translate('...') calls and auto-generate messages.php.
php artisan geo:translate-language {locale} --count={n} Translate up to n messages from new-messages.php into messages.php.
php artisan geo:translate-language-all {locale} --count={n} Keep running batch translations until all strings are translated.
php artisan geo:translate-language-batch {locale} --count={n} Translate a fixed batch of n messages at a time.

Examples


🌐 Change Current User Language

You can programmatically change the current user's language using the changeUserLanguage method:

`

Supported locale codes depend on your configuration (config/laravel-geo-genius.php) and the languages you have added via geo:add-language.

πŸ›  Timezone Artisan Commands

Laravel GeoGenius ships with helpful artisan commands:

Command Description
php artisan geo:add-language {locale} Add a new language (e.g. en, bn) to your app.

Examples

`


πŸ•’ Timezone Detection & Conversion

πŸ›  Timezone Artisan Commands

Laravel GeoGenius ships with helpful artisan commands:

Command Description
php artisan geo:add-timezone-column {table} Add a nullable timezone column to the specified table if it does not exist.

Examples

`


πŸ“± Country Picker & Phone Input

Laravel GeoGenius makes it trivial to initialise a country-aware phone input field:

Quick Blade Example

GeoGenius injects the detected country code into a hidden span:

Then you can use intl-tel-input’s API to validate on submit:

All scripts/styles are included automatically by initIntlPhoneInput() β€” you only need to add the <input> and optionally the validation snippet.


🧠 Additional Notes


🀝 Contributing

We welcome contributions! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Report bugs through GitHub Issues.


🌱 Treeware

This package is Treeware. If you use it in production, please buy the world a tree to thank us for our work. Your support helps create employment for local families and restores wildlife habitats.


πŸ“„ License

MIT License. See LICENSE for details.


πŸ“¬ Support


πŸ”„ Changelog

See CHANGELOG.md for recent changes and updates.


All versions of laravel-geo-genius with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package devrabiul/laravel-geo-genius contains the following files

Loading the files please wait ....