Skip to content

Update README for L5 release #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Geocoder for Lavarel 4
Geocoder for Lavarel 5
======================

This package allows you to use [**Geocoder**](http://geocoder-php.org/Geocoder/)
in [**Laravel 4**](http://laravel.com/).
in [**Laravel 5**](http://laravel.com/).

[![Latest StableVersion](https://poser.pugx.org/toin0u/geocoder-laravel/v/stable.png)](https://packagist.org/packages/toin0u/geocoder-laravel)
[![Total Downloads](https://poser.pugx.org/toin0u/geocoder-laravel/downloads.png)](https://packagist.org/packages/toin0u/geocoder-laravel)
Expand Down Expand Up @@ -31,6 +31,11 @@ Edit `composer.json` and add:
page to choose a stable version to use, avoid the `@stable` meta constraint.

And install dependencies:
```bash
$ composer update
```

If you do not have [**Composer**](https://getcomposer.org) installed, run these two commands:

```bash
$ curl -sS https://getcomposer.org/installer | php
Expand All @@ -41,7 +46,7 @@ $ php composer.phar install
Usage
-----

Find the `providers` key in `app/config/app.php` and register the **Geocoder Service Provider**.
Find the `providers` array key in `config/app.php` and register the **Geocoder Service Provider**.

```php
'providers' => array(
Expand All @@ -51,13 +56,13 @@ Find the `providers` key in `app/config/app.php` and register the **Geocoder Ser
)
```

Find the `aliases` key in `app/config/app.php` and register the **Geocoder Facade**.
Find the `aliases` array key in `config/app.php` and register the **Geocoder Facade**.

```php
'aliases' => array(
// ...

'Geocoder' => 'Toin0u\Geocoder\GeocoderFacade',
'Geocoder' => 'Toin0u\Geocoder\Facade\Geocoder',
)
```

Expand All @@ -78,7 +83,7 @@ The service provider creates the following services:

By default, the `geocoder.chain` service contains `GoogleMapsProvider` and `FreeGeoIpProvider`.
The `geocoder.adapter` service uses the cURL adapter. Override these services to use the
adapter/providers you want by editing `app/config/packages/toin0u/geocoder-laravel/config.php`:
adapter/providers you want by editing `config/geocoder.php`:

```php
return array(
Expand Down