dbase
dbase copied to clipboard
No support for FoxPro's .DBF
When trying to read a FoxPro DBF file, I got: "Format dBASE III PLUS
does not support field T
"
This is not an issue, it just doesn't support it and I thought you might explicitely say so in documentation to avoid confusion.
Please send me example file.
I would be glad if you write the customization on your own and then send me pull request
- Add new
Field
insrc/fields
- Register new field in
Field::create
andField::getTypes
. Do not forget to addField::TYPE_
constant - Add
FoxitPro DBase II
format insrc/formats
. Do not forget to add new field as supported fields in the format. InFormat::createHeader
you can check if the field was actually FoxPro format - throw exception if not - Register new format in
FormatFactory::initializeFormats
. Add newregisterFormat
call similar toFormat::DBASE3
If possible write unit tests for new code
During the time your PR is not yet merged you can use your own fork in your project
-
Add you fork as repository to your
compose.json
https://getcomposer.org/doc/05-repositories.md#vcs -
Change package version to
dev-master
("org.majkel/dbase": "dev-master")
Hello, I have the same error-message:
Format dBASE III PLUS
does not support field T
But I don't know how to handle this. I had read your instructions but I'm not sure how to do.
Please help.
Thanks and best regards!
https://github.com/luads/php-xbase
Use this one support much more types ! (date/timestamp/integer , ....)