Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
v0.0.11 - Added country details
Browse files Browse the repository at this point in the history
Added:

- `{{ entry.address.country }}` object to model

Changed:

- Craft 3.0.20 compatibility
- Updated `commerceguys/addressing` to 1.0.1 which should add more stability moving forward
- Removed `symfony/intl` in favour of `commerceguys/addressing` countryRepository
  • Loading branch information
leevigraham committed Aug 21, 2018
1 parent 3f4b822 commit eeb1aa7
Show file tree
Hide file tree
Showing 7 changed files with 442 additions and 490 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 0.0.11 - 2018.08.21
### Added
- `{{ entry.address.country }}` object to model
### Changed
- Craft 3.0.20 compatibility
- Updated `commerceguys/addressing` to 1.0.1 which should add more stability moving forward
- Removed `symfony/intl` in favour of `commerceguys/addressing` countryRepository


## 0.0.10 - 2018.1.03
### Fixed
- Fixes #22 Encode all emoticons in shortcodes using LitEmoji
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The [`normalizeValue`](./src/fields/Address.php#L504) method always returns an [
Given `entry.address` is your field…

```
See: https://github.com/commerceguys/addressing/blob/master/src/AddressInterface.php
{{ entry.address.countryCode }}
{{ entry.address.administrativeArea }}
{{ entry.address.locality }}
Expand All @@ -30,10 +31,20 @@ Given `entry.address` is your field…
{{ entry.address.organization }}
{{ entry.address.recipient }}
{{ entry.address.locale }}
See: https://github.com/commerceguys/addressing/blob/master/src/Country/Country.php
{{ entry.address.country.countryCode }}
{{ entry.address.country.name }}
{{ entry.address.country.threeLetterCode }}
{{ entry.address.country.numericCode }}
{{ entry.address.country.currencyCode }}
{{ entry.address.country.locale }}
{{ entry.address.placeData }}
{{ entry.address.latitude }}
{{ entry.address.longitude }}
{{ entry.address.mapUrl }}
```

![Address Demo](resources/img/address-demo.gif)
Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "newism/craft3-fields",
"description": "Address, telephone and email fields for CraftCMS 3.x",
"type": "craft-plugin",
"version": "0.0.10",
"version": "0.0.11",
"keywords": [
"craft",
"cms",
Expand All @@ -26,10 +26,9 @@
}
],
"require": {
"craftcms/cms": "^3.0.0-RC13",
"craftcms/cms": "^3.0.0",
"giggsey/libphonenumber-for-php": "^8.3",
"symfony/intl": "^3.3",
"commerceguys/addressing": "^0.8.4",
"commerceguys/addressing": "^1.0.1",
"embed/embed": "^3.0"
},
"autoload": {
Expand Down
Loading

0 comments on commit eeb1aa7

Please sign in to comment.