X12 Parser 130/189
// /path/to/EDIIN_1231.dat will be split into:
// /path/for/output/edi/
// 130.txt
// 131.txt
// 189.txt
// 997.txt
// other.txt
use Shedi\Util;
try {
Util::splitFile('/path/to/EDIIN_1213.dat', '/path/for/output/');
} catch (Exception $e) {
error_log($e->getMessage());
}
All efforts are made to generate unique file names.
// /path/to/edi/130.txt will be split into:
// /path/for/output/*.json
use Shedi\Transcript;
try {
Transcript::splitFile('/path/to/edi/130.txt', '/path/for/output/');
} catch (Exception $e) {
error_log($e->getMessage());
}
Each file name will be the application ID from ApplyTexas.
// path/to/edi/189.txt will be split into:
// /path/for/output/*.json
use Shedi\Application;
try {
Application::splitFile('/path/to/edi/189.txt', '/path/for/output/');
} catch (Exception $e) {
error_log($e->getMessage());
}
use Shedi\Transcript;
try {
Transcript::writePdf('/path/to/1234567890123.json', '/path/for/output/1234567890123.pdf');
} catch (Exception $e) {
error_log($e->getMessage());
}
use Shedi\Transcript;
try {
Transcript::writeXml('/path/to/1234567890123.json', '/path/for/output/1234567890123.xml');
} catch (Exception $e) {
error_log($e->getMessage());
}
More docs and tests coming shortly...