PHPackages                             merterciyescagan/uni-parser - 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. merterciyescagan/uni-parser

ActiveLibrary

merterciyescagan/uni-parser
===========================

The package parses CSV, JSON, XLSX, or XML files and generates CREATE TABLE and INSERT INTO SQL statements.

v1.0.3(1y ago)011MITPHP

Since Feb 28Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/erciyescagan/uni-parser)[ Packagist](https://packagist.org/packages/merterciyescagan/uni-parser)[ RSS](/packages/merterciyescagan-uni-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (6)Used By (0)

UniParser
=========

[](#uniparser)

**UniParser** is a PHP package that simplifies database integration by automatically parsing CSV, JSON, XLSX, XML, SQL, and Tableu (`.tableu`) files and generating `CREATE TABLE` and `INSERT INTO` SQL statements.

Features
--------

[](#features)

- **Multi-Format Support:** Easily parse CSV, JSON, XLSX, XML, SQL, and Tableu files.
- **Automatic SQL Generation:** Generate SQL queries for table creation and data insertion.
- **Flexible Usage:** Retrieve data as an array or generate SQL strings for MySQL integration.
- **Secure &amp; Fast:** Designed with security in mind and optimized for performance.

Installation
------------

[](#installation)

You can install UniParser via Composer:

```
composer require merterciyescagan/uniparser
```

```
require 'vendor/autoload.php';

use Merterciyescagan\UniParser\File;

// Replace 'path/to/your/file.csv' with the actual path to your data file.
$file = new File('path/to/your/file.csv');

// Parse the file to get data as an array
$data = $file->read();

// Generate a CREATE TABLE SQL statement
$sqlCreate = $file->generateTableString();
echo $sqlCreate;

// Generate an INSERT INTO SQL statement for the parsed data
$sqlInsert = $file->generateBatchImportString($data);
echo $sqlInsert;
```

### Tableu files

[](#tableu-files)

UniParser expects `.tableu` files to contain JSON describing the dataset. You can either provide an object with a `columns` array and a `data` (or `rows`) array, or an array of row objects. A minimal example looks like:

```
{
  "columns": ["id", "name", "department"],
  "data": [
    {"id": 1, "name": "Alice", "department": "Engineering"},
    {"id": 2, "name": "Bob", "department": "Sales"}
  ]
}
```

When the `columns` key is present, UniParser keeps the column order defined in the file. If it is omitted, the column names are inferred from the first row in the dataset.

Contributing
------------

[](#contributing)

**Contributions are welcome! If you have ideas, improvements, or bug fixes, feel free to open an issue or submit a pull request.**

License
-------

[](#license)

**UniParser is open-sourced software licensed under the MIT License.**

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance57

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

444d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fb86507bdb7bcf3b24325c573ff73b584bd91e61bae4dce2532d8c3bdf06b3c?d=identicon)[erciyescagan](/maintainers/erciyescagan)

---

Top Contributors

[![erciyescagan](https://avatars.githubusercontent.com/u/22736420?v=4)](https://github.com/erciyescagan "erciyescagan (23 commits)")

### Embed Badge

![Health badge](/badges/merterciyescagan-uni-parser/health.svg)

```
[![Health](https://phpackages.com/badges/merterciyescagan-uni-parser/health.svg)](https://phpackages.com/packages/merterciyescagan-uni-parser)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[in2code/powermail

Powermail is a well-known, editor-friendly, powerful and easy to use mailform extension for TYPO3 with a lots of features

982.5M38](/packages/in2code-powermail)

PHPackages © 2026

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