#message-parser #emv #hex #web-server #php #string #interface

已删除 emv_parser

EMV消息解析器

0.1.5 2024年1月21日
0.1.4 2023年12月30日
0.1.3 2023年12月24日
0.1.2 2023年12月5日
0.1.1 2023年12月3日

#68 in #php

Download history

每月59次下载

MIT/Apache

760KB
289

包含 (DOS可执行文件, 740KB) target/release/emv_parser.exe

EMV解析器

这个Rust程序以十六进制字符串格式获取EMV消息,并从输入消息中提取和解析特定字段。

用法

作为命令行界面 (CLI) 使用。

  1. 克隆存储库

    git clone https://github.com/HosseinAssaran/EMV-Parser
    cd EMV-Parser
    
  2. 构建并运行程序

    cargo build
    cargo run
    
  3. 按照提示输入要解析的EMV消息。

将Rust解析器CLI与PHP Web服务器集成。

  1. 克隆存储库

    git clone https://github.com/HosseinAssaran/EMV-Parser
    cd EMV-Parser
    
  2. 构建发布版本

    cargo build --release
    
  3. 运行PHP服务器

    php -S localhost:12345
    
  4. 打开您的浏览器并访问 localhost:12345

测试

要运行测试,请使用以下命令

cargo test

作为库使用

  1. 使用Cargo将emv_parser包添加到您的项目中
cargo add emv_parser
  1. 在您想要使用库函数的地方导入必要的模块
use emv_parser::{StringManipulation, positions_of_set_bits, LTV};

依赖关系

~1.2–1.8MB
~33K SLoC