2017 © Pedro Peláez
 

library geographer-laravel

Geographer integration classes for Laravel and Lumen

image

menarasolutions/geographer-laravel

Geographer integration classes for Laravel and Lumen

  • Monday, July 23, 2018
  • by dusterio
  • Repository
  • 2 Watchers
  • 10 Stars
  • 7,619 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

geographer-laravel

Laravel (and Lumen) integration for Geographer, (*1)

Getting started

Install Laravel integration package first:, (*2)

$ composer require menarasolutions/geographer-laravel

Good news is that Laravel will take care of singleton instance for you, so no matter how many times you call it – it's the same object., (*3)

In Laravel 5.5, service providers and aliases are automatically registered. If you're using Laravel 5.5, skip ahead., (*4)

// Add in your config/app.php

'providers' => [
    '...',
    MenaraSolutions\Geographer\Integrations\LaravelServiceProvider::class,
];

'aliases' => [
    '...',
    'Geographer' => MenaraSolutions\Geographer\Integrations\LaravelFacade::class,
];

// Start playing with it, all the same calls
Geographer::getCountries()->useShortNames()->toArray();

Full list of methods is available in Geographer documentation, (*5)

The Versions

23/07 2018

dev-master

9999999-dev https://github.com/MenaraSolutions/geographer-laravel

Geographer integration classes for Laravel and Lumen

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel geolocation localization geographer

01/11 2016

0.2.0

0.2.0.0 https://github.com/MenaraSolutions/geographer-laravel

Geographer integration classes for Laravel and Lumen

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel geolocation localization geographer

02/10 2016

0.1.0

0.1.0.0 https://github.com/MenaraSolutions/geographer-laravel

Geographer integration classes for Laravel and Lumen

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

laravel geolocation localization geographer