The bundle provides console commands for common operations.
php bin/console nowo:sepa:validate-iban ES9121000418450200051332This command validates an IBAN and displays detailed information:
- Normalized IBAN
- Formatted IBAN
- Country code
- Check digits
- BBAN
- Validation result
php bin/console nowo:sepa:ccc-to-iban 21000418450200051332This command converts a Spanish CCC to IBAN format and displays:
- Original CCC
- Generated IBAN
- Bank code
- Branch code
- Account number
php bin/console sepa:validate-credit-card 4532015112830366This command validates a credit card number and displays detailed information:
- Normalized card number
- Formatted card number
- Masked card number
- Validation result (Luhn algorithm)
- Card type (Visa, Mastercard, Amex, etc.)
- BIN (Bank Identification Number)
- Last 4 digits
- Card length
The command accepts card numbers with or without spaces and dashes:
php bin/console sepa:validate-credit-card "4532 0151 1283 0366"
php bin/console sepa:validate-credit-card 4532-0151-1283-0366php bin/console nowo:sepa:parse-direct-debit path/to/direct-debit.xmlThis command parses a SEPA Direct Debit XML file (pain.008 format) and displays the extracted information:
- Group header (message ID, creation date, initiating party)
- Payment information (payment info ID, sequence type, due date, creditor details)
- Transaction details (amounts, debtors, mandate references, remittance information)
Output as JSON:
php bin/console nowo:sepa:parse-direct-debit path/to/direct-debit.xml --jsonError messages:
- File not found: The given path does not exist.
- Could not read file: The path is not a readable file (e.g. it is a directory, or the file is not readable). Ensure you pass a path to an actual XML file.
- Invalid SEPA Direct Debit XML format: The file content is not valid SEPA Direct Debit XML (structure or schema).
- Error parsing XML: An exception occurred while parsing (details are shown in the message).