slicklabs / icf-reader
Reads ICF files
Installs: 92
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/slicklabs/icf-reader
Requires (Dev)
- symfony/var-dumper: 6.*
This package is auto-updated.
Last update: 2025-09-17 19:49:53 UTC
README
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);