Property | Type | Description | |
---|---|---|---|
$expirationDateFormat |
Property | Type | Description | |
---|---|---|---|
$cardParams | see http://en.wikipedia.org/wiki/Bank_card_number for a reference of existing prefixes | ||
$cardVendors | |||
$ibanFormats | list of IBAN formats, source: @link https://www.swift.com/standards/data-standards/iban |
Method | Description | |
---|---|---|
creditCardDetails ( boolean $valid = true ) : array | ||
creditCardExpirationDate ( boolean $valid = true ) : Faker\Provider\DateTime | ||
creditCardExpirationDateString ( boolean $valid = true, string $expirationDateFormat = null ) : string | ||
creditCardNumber ( string $type = null, boolean $formatted = false, string $separator = '-' ) : string | Returns the String of a credit card number. | |
creditCardType ( ) : string | ||
iban ( string $countryCode, string $prefix = '', integer $length = null ) : string | International Bank Account Number (IBAN) | |
swiftBicNumber ( ) : string | Return the String of a SWIFT/BIC number |
Method | Description | |
---|---|---|
addBankCodeChecksum ( string $iban, string $countryCode = '' ) : string | Calculates a checksum for the national bank and branch code part in the IBAN. |
public creditCardDetails ( boolean $valid = true ) : array | ||
$valid | boolean | True (by default) to get a valid expiration date, false to get a maybe valid date |
return | array |
public creditCardExpirationDate ( boolean $valid = true ) : Faker\Provider\DateTime | ||
$valid | boolean | True (by default) to get a valid expiration date, false to get a maybe valid date |
return | Faker\Provider\DateTime |
public static creditCardNumber ( string $type = null, boolean $formatted = false, string $separator = '-' ) : string | ||
$type | string | Supporting any of 'Visa', 'MasterCard', 'American Express', and 'Discover' |
$formatted | boolean | Set to true if the output string should contain one separator every 4 digits |
$separator | string | Separator string for formatting card number. Defaults to dash (-). |
return | string |
public static creditCardType ( ) : string | ||
return | string | Returns a credit card vendor name |
public static iban ( string $countryCode, string $prefix = '', integer $length = null ) : string | ||
$countryCode | string | ISO 3166-1 alpha-2 country code |
$prefix | string | for generating bank account number of a specific bank |
$length | integer | total length without country code and 2 check digits |
return | string |
public static swiftBicNumber ( ) : string | ||
return | string | Swift/Bic number |
protected static $cardParams |