Skip to content

Latest commit

 

History

History
77 lines (58 loc) · 2.13 KB

File metadata and controls

77 lines (58 loc) · 2.13 KB

Console Commands

The bundle provides console commands for common operations.

Validate IBAN

php bin/console nowo:sepa:validate-iban ES9121000418450200051332

This command validates an IBAN and displays detailed information:

  • Normalized IBAN
  • Formatted IBAN
  • Country code
  • Check digits
  • BBAN
  • Validation result

Convert CCC to IBAN

php bin/console nowo:sepa:ccc-to-iban 21000418450200051332

This command converts a Spanish CCC to IBAN format and displays:

  • Original CCC
  • Generated IBAN
  • Bank code
  • Branch code
  • Account number

Validate Credit Card

php bin/console sepa:validate-credit-card 4532015112830366

This 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-0366

Parse Direct Debit XML

php bin/console nowo:sepa:parse-direct-debit path/to/direct-debit.xml

This 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 --json

Error 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).