Download the PHP package helip/structured-communication without Composer
On this page you can find all versions of the php package helip/structured-communication. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download helip/structured-communication
More information about helip/structured-communication
Files in helip/structured-communication
Package structured-communication
Short Description Calcul de la communication structurée belge
License LGPL3
Informations about the package structured-communication
Helip\StructuredCommunication
This PHP library provides a set of tools for handling Belgian bank structured communications, ensuring correct data formatting, control number calculations, and validations according to standard practices.
Features
- Control Number Calculation: Generate control numbers for a given 10-digit data input.
- Data Formatting: Format structured communication strings in the official pattern
+++ 123 / 1234 / 12345 +++
. - Data Validation: Extensive validation for input data to ensure they conform to expected formats and standards.
- Error Handling: Utilizes custom exceptions to manage and report specific error scenarios effectively.
Requirements
- PHP 8.0 or higher
Installation
You can install the package via composer:
Usage
Here's a quick example to get you started:
Exceptions
Custom exceptions for handling specific errors:
InvalidDataException
InvalidControlNumberException
InvalidCommunicationFormatException
Contributing
Contributions are welcome! Please feel free to submit pull requests or create issues for bugs and feature requests.
License
This project is licensed under the LGPL-3.0 License - see the LICENSE.md file for details.