helip/structured-communication
最新稳定版本:0.1
Composer 安装命令:
composer require helip/structured-communication
包简介
Calcul de la communication structurée belge
README 文档
README
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:
composer require helip/structured-communication
Usage
Here's a quick example to get you started:
use StructuredCommunication\StructuredCommunication; try { $communication = new StructuredCommunication('1234567890'); echo $communication->getFormattedCommunication(); } catch (Exception $e) { echo 'Error: ' . $e->getMessage(); }
Exceptions
Custom exceptions for handling specific errors:
InvalidDataExceptionInvalidControlNumberExceptionInvalidCommunicationFormatException
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.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL3
- 更新时间: 2024-07-10