iso8583_parser

Crates.ioiso8583_parser
lib.rsiso8583_parser
version0.1.12
sourcesrc
created_at2024-01-21 11:09:15.742157
updated_at2024-09-18 12:38:50.160909
descriptionAn ISO8583 Message Parser
homepage
repositoryhttps://github.com/HosseinAssaran/ISO8583-Parser
max_upload_size
id1107501
size35,451
Hosssein (HosseinAssaran)

documentation

README

ISO8583 parser

Crates.io Crates.io build workflow release workflow

This Rust program gets iso messages in hex string format and it extracts and processes specific fields from an input message.

Important Note: As the PHP Web server uses a rust program to parse the message, you will need it. You can achieve this program by building release of the rust written program from the source or you can downlaod the executable file with iso_parser_downloader.

Usage

Run it as a PHP Web Server

  1. Download the source code and go to the root directory of your source code
  2. Run below command inside PowerShell:
     .\iso_parser_downloader.bat
    
  3. Run PHP Web Server using below command:
    php -S localhost:12345
    
  4. Open your browser and go to the link below:
    localhost:12345
    

Compile and Utilize as a Command Line Interface (CLI).

  1. Clone the repository:

    git clone https://github.com/HosseinAssaran/ISO8583-Parser
    cd ISO8583-Parser
    
  2. Build and run the program:

    cargo build
    cargo run
    
  3. Follow the prompts to enter an iso message for parsing.

Compile and Integrate the Rust Parser CLI with a PHP Web Server.

  1. Clone the repository:

    git clone https://github.com/HosseinAssaran/ISO8583-Parser
    cd ISO8583-Parser
    
  2. Build relaese:

    cargo build --release
    
  3. Run PHP Server:

    php -S localhost:12345
    
  4. Open you browser and go to localhost:12345

Testing

To run tests, use the following command:

cargo test

Usage As a Library

  1. Add the iso8583_parser package to your project using Cargo:
cargo add iso8583_parser
  1. Import the necessary modules where you want to use the library functions:
use iso8583_parser::{StringManipulation, positions_of_set_bits, LTV};

Commit count: 0

cargo fmt