PHPackages                             inok/dbf2mysql - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. inok/dbf2mysql

ActiveLibrary[Database &amp; ORM](/categories/database)

inok/dbf2mysql
==============

Package for converting DBASE-files to MySQL

1.0.5(1y ago)56187MITPHPPHP &gt;=5.6

Since Jan 18Pushed 1y ago4 watchersCompare

[ Source](https://github.com/nchizhov/inok-dbf2mysql)[ Packagist](https://packagist.org/packages/inok/dbf2mysql)[ Docs](https://blog.kgd.in)[ RSS](/packages/inok-dbf2mysql/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

DBF to MySQL import
-------------------

[](#dbf-to-mysql-import)

[![License](https://camo.githubusercontent.com/abc3067b86b2a5237b27253e1cc66a559e5117cc7d9250985baf088e91c3ccd6/68747470733a2f2f706f7365722e707567782e6f72672f696e6f6b2f646266326d7973716c2f6c6963656e7365)](https://packagist.org/packages/inok/dbf2mysql)[![License](https://camo.githubusercontent.com/ad3e1244966f92031799336a2ed85a810c1018c9772d989a8a205ab53611125b/68747470733a2f2f706f7365722e707567782e6f72672f696e6f6b2f646266326d7973716c2f762f737461626c65)](https://packagist.org/packages/inok/dbf2mysql)[![License](https://camo.githubusercontent.com/11ca89d41eac4ffa49bc1dddc911b311654b3c426d0b66ef6ca8ae66ea2681bc/68747470733a2f2f706f7365722e707567782e6f72672f696e6f6b2f646266326d7973716c2f642f6d6f6e74686c79)](https://packagist.org/packages/inok/dbf2mysql)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e02022dbf350e598427e5e495ef3814050a4327040b54306f09a557bed29d6c2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6368697a686f762f696e6f6b2d646266326d7973716c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nchizhov/inok-dbf2mysql/?branch=master)

### Description

[](#description)

This package converts DBASE/FoxPro files into MySQL tables.

### Requires

[](#requires)

- [Inok\\Dbf](https://packagist.org/packages/inok/dbf)

### Using

[](#using)

```
new \Inok\Dbf2mysql\convert($config);

```

where **$config** is array of parameters

#### Config array parameters

[](#config-array-parameters)

- **db\_host** - MySQL Server (default **localhost**)
- **db\_port** - MySQL Port (default **3306**)
- **db\_username** - MySQL Username (default: **root**)
- **db\_password** - MySQL User Password (default: **empty**)
- **db\_name** - MySQL Database name: *should exists* (**required**)
- **db\_charset** - MySQL Table Charset (default: **utf-8**)
- **dbf\_charset** - DBF-file charset for tables without defined encoding (default: **866**)
- **dbf\_path** - Path to DBF-files (**required**)
- **dbf\_list** - List of import DBF-files: *without extension, case-insensitive*. If **null** - import of all files from directory (default: **null**)
- **table\_prefix** - Add prefix for table name (default: **null**)
- **key\_field** - Adds index to MySQL table after import (default: **null**)
- **columns\_only** - Imports only columns from DBF-file (default: **false**)
- **deleted\_records** - Import marked for deletion records: *creating column with name '**deleted**'* (default: **false**)
- **verbose** - Show import process in console (default: **true**)
- **log\_path** - Log-file with import process. If *empty* or *null* - not logging (default: **current script directory**)

#### Notes

[](#notes)

1. Empty Dates and TimeDates fields converts to **NULL**
2. General and Picture fields of DBF-files imports into BLOB-fields
3. Logical fields with values: **'t', 'y', 'д'** converts to **'1'**, otherwise - to **'0'**
4. MEMO-fields imports into TEXT-fields

#### License

[](#license)

This package is released under the **MIT license**.

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance42

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1447 days

Total

3

Last Release

503d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce0f496c0c04c90c29675b08f834ad58707bc8e3498e1693e198e23e0b3e5871?d=identicon)[nchizhov](/maintainers/nchizhov)

---

Top Contributors

[![nchizhov](https://avatars.githubusercontent.com/u/4849753?v=4)](https://github.com/nchizhov "nchizhov (2 commits)")[![mschindler83](https://avatars.githubusercontent.com/u/2979969?v=4)](https://github.com/mschindler83 "mschindler83 (1 commits)")

---

Tags

mysqlconverterdbfdbasefoxpro

### Embed Badge

![Health badge](/badges/inok-dbf2mysql/health.svg)

```
[![Health](https://phpackages.com/badges/inok-dbf2mysql/health.svg)](https://phpackages.com/packages/inok-dbf2mysql)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k25.2M33](/packages/kirschbaum-development-eloquent-power-joins)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M35](/packages/scienta-doctrine-json-functions)[hisamu/php-xbase

A simple parser for \*.dbf, \*.fpt files using PHP

1871.5M2](/packages/hisamu-php-xbase)[org.majkel/dbase

Library to access dbase / xbase / dbf database files

33100.7k1](/packages/orgmajkel-dbase)[cytopia/mysqldump-secure

Secure mysqldump script with encryption, compression, logging, blacklisting and Nagios monitoring integration

1474.7k1](/packages/cytopia-mysqldump-secure)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
