howlowck/laravel-postgis-database

An extended Postgres driver for Laravel 4 that provides support for PostGIS features.
46
Install
composer require howlowck/laravel-postgis-database
Latest Version:v0.1.1
PHP:>=5.4.0
License:MIT
Last Updated:Oct 7, 2014
Links: GitHub  ·  Packagist
Maintainer: howlowck

laravel-postgis-database

Forked from this laravel-postgis-database (that seems to be abandoned)

Provides an extended Postgres driver for Laravel 4 that provides support for PostGIS features

features

  • Adds schema grammer for point
  • Adds schema grammer for polygon

install

composer.json

Add a requirement for the package

{
    "require": {
        "howlowck/laravel-postgis-database": "dev-master"
    }
}

config/app.php

Add it to the list of providers

'providers' => array(
  'Lamb\LaravelPostgisDatabase\PostgisDatabaseServiceProvider'
)

config/database.php

Add a connection using the postgis driver instead of pgsql

  'pgsql' => array(
    'driver'   => 'postgis',
    'host'     => 'localhost',
    'database' => 'database',
    'username' => 'root',
    'password' => '',
    'charset'  => 'utf8',
    'prefix'   => '',
    'schema'   => 'public',
  ),

license

Released under the MIT license

Related Packages

laravel-doctrine/fluent

A fluent PHP mapping driver for Doctrine2.

450,621 43
laravel-doctrine/migrations

Doctrine Migrations for Laravel

2,913,809 78
laravel/database

Get Laravel database for your non laravel projects. Built on top of illuminate/d...

36,105 90
ytake/laravel-couchbase

Couchbase providers for Laravel

52,405 30