2017 © Pedro PelĂĄez
 

yii2-extension yii2-correios

Locates an address in Brazil by postal code

image

yiibr/yii2-correios

Locates an address in Brazil by postal code

  • Thursday, December 22, 2016
  • by yiibr
  • Repository
  • 6 Watchers
  • 9 Stars
  • 3,815 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 1 Open issues
  • 8 Versions
  • 5 % Grown

The README.md

yii2-correios

This extension allows automatic completion and search Brazilian address., (*1)

Yii2 Latest Stable Version Code Climate Total Downloads, (*2)

Installation

Add to the require section of your composer.json file:, (*3)

"yiibr/yii2-correios": "*"

Configuration

On your controller., (*4)

public function actions()
{
    return [
        ...
        'addressSearch' => 'yiibr\correios\CepAction'
        ...
    ];
}

How to use

On your view file., (*5)


... = CepInput::widget([ 'name' => 'cep', 'action' => ['addressSearch'], 'fields' => [ 'location' => 'location_input_id', 'district' => 'district_input_id', 'city' => 'city_input_id', 'state' => 'state_input_id' ], ]); ?>

// Example: = $form->field($model, 'cep',)->widget('yiibr\correios\CepInput', [ 'action' => ['addressSearch'], 'fields' => [ 'location' => 'address-location', 'district' => 'address-district', 'city' => 'address-city', 'state' => 'address-state', ], ]) ?> = $form->field($model, 'location')->textInput() ?> = $form->field($model, 'district')->textInput() ?> = $form->field($model, 'city')->textInput() ?> = $form->field($model, 'state')->textInput() ?>

The Versions

22/12 2016

dev-master

9999999-dev https://github.com/yiibr/yii2-correios

Locates an address in Brazil by postal code

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 correios

22/12 2016

2.0.4

2.0.4.0 https://github.com/yiibr/yii2-correios

Locates an address in Brazil by postal code

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 correios

14/01 2016

2.0.3

2.0.3.0 https://github.com/yiibr/yii2-correios

Locates an address in Brazil by postal code

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 correios

28/09 2015

2.0.2

2.0.2.0 https://github.com/yiibr/yii2-correios

Locates an address in Brazil by postal code

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 correios

17/04 2015

2.0.1

2.0.1.0 https://github.com/yiibr/yii2-correios

Locates an address in Brazil by postal code

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 correios

15/04 2015

2.0.0

2.0.0.0 https://github.com/yiibr/yii2-correios

Locates an address in Brazil by postal code

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 correios

16/03 2014

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/yiibr/yii2-correios

Locates an address in Brazil by postal code

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 correios

16/03 2014

1.0.0

1.0.0.0 https://github.com/yiibr/yii2-correios

Locates an address in Brazil by postal code

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 correios