helip/structured-communication 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  • 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.

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL3
  • 更新时间: 2024-07-10