PHP code example of boda / edi-parser
1. Go to this page and download the library: Download boda/edi-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
boda / edi-parser example snippets
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Boda\EdiParserBundle\BodaEdiParserBundle(),
);
}
@Todo : Rewrite example
array:3 [▼
"header" => array:5 [▼ // Header
"IDENTIFIER" => "00"
"DOT" => "."
"NUMBER" => "00"
"TEST" => " "
"HEADER" => "HEADER"
]
"body" => array:2 [▼ // Body
1 => array:2 [▼ // Group 1
0 => array:5 [▼ // Group 1 header
"IDENTIFIER" => "41"
"DOT" => "."
"NUMBER" => "00"
"TEST" => " "
"CONTENT" => "CONTENT1"
]
1 => array:7 [▼ // Group 1 line
"IDENTIFIER" => "41"
"DOT" => "."
"NUMBER" => "20"
"TEST" => " "
"CONTENT" => "CONTENT2"
"SPACE" => " "
"SUBLINE" => "subline"
]
]
2 => array:1 [▼ // Group 2
0 => array:5 [...] // Group 2 header
]
]
"footer" => array:5 [▼ // Footer
"IDENTIFIER" => "99"
"DOT" => "."
"NUMBER" => "00"
"TEST" => " "
"CONTENT" => "FOOTER"
]
]