nchizhov / inok-dbf

Package for reading DBASE-files (FoxPro) wuth/without MEMO-fields
MIT License
9 stars 3 forks source link

DBF-file Reader Class

License License License Scrutinizer Code Quality

Description

This group of classes (Table, Records, Memo in namespace Inok\Dbf) needs for reading DBF-files (structure, records) with/without MEMO-fields.

Classes descriptions

Table

May read headers of: FoxBASE, dBASE III, dBASE IV, dBASE 5, dBASE 7 (partial), FoxPro, FoxBASE+, Visual FoxPro file structure.

Using:
$table = new \Inok\Dbf\Table(/path/to/dbf/file, $charset);

where $charset only using, when charset in dbf-file not defined (default charset: 866)

Methods:

Records

May read records of: FoxBASE, dBASE III, dBASE IV, dBASE 5, dBASE 7, FoxPro, FoxBASE+, Visual FoxPro file records. Now implements column types:

Using:
$records = new \Inok\Dbf\Records($data, $encode, $headers, $columns);
Methods:

Memo

May read MEMO-files formats (headers and records): DBT, FPT, SMT

Using:
$memo = new \Inok\Dbf\Memo(/path/to/dbf/memo/file);
Methods:

Notes

Table header array:
Column header array:
MEMO-file header array:
MEMO-record header array:

License

This package is released under the MIT license.