@@ -12,7 +12,7 @@ SepaUtilities is a PHP class to check and sanitize inputs used in SEPA files
1212such as IBAN numbers, creditor identifiers, names and other text.
1313
1414## PHP Versions
15- SepaUtilities supports PHP >= 7.2 including PHP 8 .
15+ SepaUtilities supports PHP >= 8.1 .
1616
1717## Installation
1818
@@ -22,7 +22,7 @@ You can get SepaUtilities via Composer. Just add
2222``` json
2323{
2424 "require" : {
25- "abcaeffchen/sepa-utilities" : " ^1.3 "
25+ "abcaeffchen/sepa-utilities" : " ^2.0 "
2626 }
2727}
2828```
@@ -43,7 +43,7 @@ and changes all letters to upper case.
4343- ` isNationalTransaction($iban1,$iban2) ` : Checks if both IBANs are belong to the same country.
4444- ` checkCharset($str) ` : Checks if the string contains only allowed characters.
4545- ` check($field, $input, $options, $version) ` : Checks if the input fits the field. This function also does little
46- format changes, e.g. correcting letter case. Possible field values are:
46+ format changes, e.g. correcting letter case. Possible field values are (case-insensitive) :
4747 - ` initgpty ` : Initiating Party
4848 - ` initgptyid ` : Initiating Party ID
4949 - ` msgid ` : Message ID
@@ -64,7 +64,21 @@ format changes, e.g. correcting letter case. Possible field values are:
6464 - ` seqtp ` : Sequence Type
6565 - ` lclinstrm ` : Local Instrument
6666 - ` ctry ` : Two-letter country code, used in postal address
67- - ` adrline ` : An address line, or an array of at most two address lines
67+ - Subfield of ` pstlAdr `
68+ - ` adrline ` : An address line, or an array of at most two address lines
69+ - ` bldgnm ` : Building name
70+ - ` bldgnb ` : Building number
71+ - ` twnnm ` : Town name
72+ - ` twnlctnnm ` : Town location name (within a town)
73+ - ` dstrctnm ` : District name
74+ - ` ctrysubdvsn ` : country subdivision, e.g. state, region, county
75+ - ` pstbx ` : Postbox
76+ - ` pstcd ` : Postal code
77+ - ` dept ` : Department
78+ - ` subdept ` : Subdepartment
79+ - ` strtnm ` : Street name
80+ - ` flr ` : Floor
81+ - ` room ` : Room
6882
6983The ` $options ` take an array
7084### Sanitizing
0 commit comments