5 releases
0.1.10 | Mar 4, 2024 |
---|---|
0.1.9 | Feb 7, 2024 |
0.1.8 | Jan 29, 2024 |
0.1.7 | Jan 21, 2024 |
0.1.6 | Jan 21, 2024 |
#888 in Parser implementations
32 downloads per month
23KB
379 lines
ISO8583 parser
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
- Download the source code and go to the root directory of your source code
- Run below command inside PowerShell:
.\iso_parser_downloader.bat
- Run PHP Web Server using below command:
php -S localhost:12345
- Open your browser and go to the link below:
localhost:12345
Compile and Utilize as a Command Line Interface (CLI).
-
Clone the repository:
git clone https://github.com/HosseinAssaran/ISO8583-Parser cd ISO8583-Parser
-
Build and run the program:
cargo build cargo run
-
Follow the prompts to enter an iso message for parsing.
Compile and Integrate the Rust Parser CLI with a PHP Web Server.
-
Clone the repository:
git clone https://github.com/HosseinAssaran/ISO8583-Parser cd ISO8583-Parser
-
Build relaese:
cargo build --release
-
Run PHP Server:
php -S localhost:12345
-
Open you browser and go to
localhost:12345
Testing
To run tests, use the following command:
cargo test
Usage As a Library
- Add the iso8583_parser package to your project using Cargo:
cargo add iso8583_parser
- Import the necessary modules where you want to use the library functions:
use iso8583_parser::{StringManipulation, positions_of_set_bits, LTV};
Dependencies
~1.3–1.8MB
~35K SLoC