FNM package is for creating FNM file from JSON and this package can also be useful for reading fnm file ie Import and export FNM (1003 form).
Add package in your composer.json
"require": {
"others" :"packages",
"indradevzapbuild/FNM": "dev-master",
}
Create your own json as sample.json
<?php
require "vendor/autoload.php";
use indradevzapbuild\FNM\FNM;
$fnmObj = new FNM();
$get_json = json_decode(file_get_contents('sample.json'));
$fnmObj->export($get_json);
?>
Pass created FNM file to it.
<?php
require "vendor/autoload.php";
use indradevzapbuild\FNM\FNM;
$fnmObj = new FNM();
$fnmfilepath = dirname(__FILE__).'/sample.fnm';
$arrObj = $fnmObj->import($fnmfilepath);
echo "<pre>";
print_r($arrObj);
?>
Please create an issue if you found any trouble.