2017 © Pedro Peláez
 

symfony-bundle addressing-bundle

Integration of markup/addressing with Symfony2.

image

markup/addressing-bundle

Integration of markup/addressing with Symfony2.

  • Monday, February 19, 2018
  • by shieldo
  • Repository
  • 2 Watchers
  • 6 Stars
  • 34,324 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 5 Versions
  • 13 % Grown

The README.md

This repository and organisation are scheduled for deletion - please fork any repositories you are using to another location prior to February 28th 2022.

About

This Symfony bundle provides integration with the markup/addressing package, which is able to format addresses according to the rules set out in Frank's Compulsive Guide To Postal Addresses., (*1)

Installation

Add MarkupAddressingBundle to your composer.json:, (*2)

{
    "require": {
        "markup/addressing-bundle": "@dev"
    }
}

Add MarkupAddressingBundle to your AppKernel.php:, (*3)

    public function registerBundles()
    {
        $bundles = [
            ...
            new Markup\AddressingBundle\MarkupAddressingBundle(),
        ];
        ...
    }

Finally, install the bundle using Composer:, (*4)

$ php composer.phar update markup/addressing-bundle

Usage

Simple usage example:, (*5)

    $renderer = $this->get('markup_addressing.address.renderer');
    $address = new MyAddressAdapter($myAddress); //MyAddressAdapter here wraps a different address definition and makes it implement Markup\Addressing\AddressInterface
    echo $renderer->render($address, ['format' => 'plaintext']);

This would echo out an address, formatted correctly according to the country, using plaintext., (*6)

License

Released under the MIT License. See LICENSE., (*7)

Build Status, (*8)

The Versions

19/02 2018

dev-master

9999999-dev

Integration of markup/addressing with Symfony2.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Douglas Greenshields

addresses formatting addressing postal

19/02 2018

dev-test_against_php_7_2

dev-test_against_php_7_2

Integration of markup/addressing with Symfony2.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Douglas Greenshields

addresses formatting addressing postal

28/07 2017

0.2.1

0.2.1.0

Integration of markup/addressing with Symfony2.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Douglas Greenshields

addresses formatting addressing postal

14/03 2017

0.2.0

0.2.0.0

Integration of markup/addressing with Symfony2.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Douglas Greenshields

addresses formatting addressing postal

01/11 2016

0.1.0

0.1.0.0

Integration of markup/addressing with Symfony2.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Douglas Greenshields

addresses formatting addressing postal