PHP Classes
elePHPant
Icontem

PHP Address Formatter: Format postal address according to country rules

Recommend this page to a friend!
  Info   View files Example   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2015-04-15 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 257 All time: 7,659 This week: 164Up
Version License PHP version Categories
address-formater 1.0GNU General Publi...5Localization, PHP 5, Geography
Description Author

This class can format postal address according to country rules.

It takes as parameters an array of elements that define the postal address like recipient name, street, number, building, locality, province, postal code and country.

The class reads template files that define how to format an address for each country. Currently it provides templates for several countries and a default template for other countries.

The class can format the address for a full mailing or waypoint address. The country name may be optionally omitted.

Innovation Award
PHP Programming Innovation award nominee
May 2015
Number 5


Prize: One year server license IP to country, region, city, latitude, longitude, ZIP code, time zone, area code database
When you want to send a letter or a package via postal mail, you need to write the address according to the rules of formatting the address in each country.

This class can format postal addresses according the rules of the country of the address.

Manuel Lemos
  Performance   Level  
Name: Dave Smith <contact>
Classes: 47 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 29x

Winner: 6x

 

  Files folder image Files  
File Role Description
Files folder imageformats (8 files)
Plain text file addrformat.class.php Class Main Class
Accessible without login Plain text file example.php Example Example usage
Accessible without login Plain text file example_cascade.php Example Example usage for Cascading location selects
Accessible without login Plain text file manual.txt Doc. Documentation

  Files folder image Files  /  formats  
File Role Description
  Accessible without login Plain text file default.txt Data Format definition - default
  Accessible without login Plain text file default_1.txt Data Format waypoint definition - default
  Accessible without login Plain text file EN.txt Data Format definition - England
  Accessible without login Plain text file EN_1.txt Data Format waypoint definition - England
  Accessible without login Plain text file PT.txt Data Format definition - Portugal
  Accessible without login Plain text file PT_1.txt Data Format waypoint definition - Portugal
  Accessible without login Plain text file SW.txt Data Format definition - Star Wars
  Accessible without login Plain text file SW_1.txt Data Format waypoint definition - Star Wars

 Version Control Unique User Downloads Download Rankings  
 0%
Total:257
This week:0
All time:7,659
This week:164Up