PHPackages                             urukalo/csvimporter - 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. urukalo/csvimporter

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

urukalo/csvimporter
===================

csv importer

v1.1.3(8y ago)03.7kMITPHP

Since Feb 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/urukalo/csvimporter)[ Packagist](https://packagist.org/packages/urukalo/csvimporter)[ Docs](https://github.com/urukalo/csvimporter)[ RSS](/packages/urukalo-csvimporter/feed)WikiDiscussions master Synced 3w ago

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

csvImporter
===========

[](#csvimporter)

simple importer from csv file to mysql database

Getting Started
---------------

[](#getting-started)

add with composer make folder with cvs files (one file by database)

look down at usage example

### Usage

[](#usage)

here is one example for usage in laravel seeder

```
        $connection = new PDO('mysql:host=127.0.0.1;dbname=my_db;charset=utf8', 'my_user', 'my_pass', array(
            PDO::ATTR_PERSISTENT => true
        ));

        $csvPath = __DIR__."/csv/";
        $importer = new csvImporter($connection, $csvPath);

        $configs = [

            [
                'table' => 'table_name',
                'fields' => [
                    'CSV_ID' => 'table_id',
                    'CreatedDate' => 'created_at',
                    'ModifiedDate' => 'updated_at',
                    'Website' => 'website',
                    'FaceBook' => 'facebook',
                    'Twitter' => 'twitter',
                    'Instagram' => 'instagram',
                    'ModifiedBy' => 'modified_by',
                    'Enabled' => 'enabled'
                ],
                'file' => 'file_name.csv',
            ]
        ];

         echo $importer->run($configs);

```

Running the tests
-----------------

[](#running-the-tests)

Explain how to run the automated tests for this system

### Break down into end to end tests

[](#break-down-into-end-to-end-tests)

Explain what these tests test and why

```
Give an example

```

### And coding style tests

[](#and-coding-style-tests)

Explain what these tests test and why

```
Give an example

```

Deployment
----------

[](#deployment)

Add additional notes about how to deploy this on a live system

Built With
----------

[](#built-with)

- Dropwizard - Bla bla bla
- Maven - Maybe
- Atom - ergaerga

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

[](#contributing)

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).

Authors
-------

[](#authors)

- **Milan Urukalo** - *Initial work* - [PurpleBooth](https://github.com/urukalo)

See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

Acknowledgments
---------------

[](#acknowledgments)

- Hat tip to anyone who's code was used
- Inspiration
- etc

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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

Every ~90 days

Recently: every ~134 days

Total

7

Last Release

3261d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4164349?v=4)[Milan Urukalo](/maintainers/urukalo)[@urukalo](https://github.com/urukalo)

---

Top Contributors

[![urukalo](https://avatars.githubusercontent.com/u/4164349?v=4)](https://github.com/urukalo "urukalo (11 commits)")

---

Tags

mysqlimportcvs

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/urukalo-csvimporter/health.svg)

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

###  Alternatives

[doctrine/dbal

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

9.7k595.8M6.5k](/packages/doctrine-dbal)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

10.1k3.4k](/packages/leantime-leantime)[kimai/kimai

Kimai - Time Tracking

4.8k8.7k1](/packages/kimai-kimai)[scienta/doctrine-json-functions

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

58825.2M48](/packages/scienta-doctrine-json-functions)[rah/danpu

Zero-dependency MySQL dump library for easily exporting and importing databases

62410.3k11](/packages/rah-danpu)

PHPackages © 2026

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