0.1.5 |
|
---|---|
0.1.4 |
|
0.1.3 |
|
0.1.2 |
|
0.1.1 |
|
#70 in #php
59 downloads per month
760KB
289 lines
Contains (DOS exe, 740KB) target/release/emv_parser.exe
EMV Parser
This Rust program gets emv messagesv in hex string format and it extracts and processes specific fields from an input message.
Usage
Utilize as a Command Line Interface (CLI).
-
Clone the repository:
git clone https://github.com/HosseinAssaran/EMV-Parser cd EMV-Parser
-
Build and run the program:
cargo build cargo run
-
Follow the prompts to enter an EMV message for parsing.
Integrate the Rust Parser CLI with a PHP Web Server.
-
Clone the repository:
git clone https://github.com/HosseinAssaran/EMV-Parser cd EMV-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 emv_parser package to your project using Cargo:
cargo add emv_parser
- Import the necessary modules where you want to use the library functions:
use emv_parser::{StringManipulation, positions_of_set_bits, LTV};
Dependencies
~1.2–1.8MB
~33K SLoC