Skip to content

Converts electronic invoices in the ICF format to an array

wefabric/ICFReader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ICFReader

Read file from disk

You can easily read in an ICF-file stored on disk.

    $reader = new \ICFReader\Reader($filepath);
    $result = $reader->read();

Read data

If you want, you can also parse data from somewhere else than from disk. For easy testing, the below example reads the file contents manually and then processes it.

    $icf_file = file_get_contents($filepath); // or from somewhere else.
    
    $reader = new \ICFReader\Reader(''); //requires a filepath parameter, but not required for reading in from data.
    $data = $reader->toArray($icf_file);
    $result = $reader->format($data);

About

Converts electronic invoices in the ICF format to an array

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages