@@ -12,7 +12,7 @@ SepaUtilities is a PHP class to check and sanitize inputs used in SEPA files
12
12
such as IBAN numbers, creditor identifiers, names and other text.
13
13
14
14
## PHP Versions
15
- SepaUtilities supports PHP >= 7.2 including PHP 8 .
15
+ SepaUtilities supports PHP >= 8.1 .
16
16
17
17
## Installation
18
18
@@ -22,7 +22,7 @@ You can get SepaUtilities via Composer. Just add
22
22
``` json
23
23
{
24
24
"require" : {
25
- "abcaeffchen/sepa-utilities" : " ^1.3 "
25
+ "abcaeffchen/sepa-utilities" : " ^2.0 "
26
26
}
27
27
}
28
28
```
@@ -43,7 +43,7 @@ and changes all letters to upper case.
43
43
- ` isNationalTransaction($iban1,$iban2) ` : Checks if both IBANs are belong to the same country.
44
44
- ` checkCharset($str) ` : Checks if the string contains only allowed characters.
45
45
- ` 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) :
47
47
- ` initgpty ` : Initiating Party
48
48
- ` initgptyid ` : Initiating Party ID
49
49
- ` msgid ` : Message ID
@@ -64,7 +64,21 @@ format changes, e.g. correcting letter case. Possible field values are:
64
64
- ` seqtp ` : Sequence Type
65
65
- ` lclinstrm ` : Local Instrument
66
66
- ` 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
68
82
69
83
The ` $options ` take an array
70
84
### Sanitizing
0 commit comments