Skip to content

mgrajcarek/user-importer-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetInteractive User importer bundle (from CSV)

Installation

Add Git repository git@github.com:mgrajcarek/user-importer-poc.git to your composer.json file:

"repositories": [
    {
        "type": "vcs",
        "url": "git@github.com:mgrajcarek/user-importer-poc.git"
    }
],

Add NetInteractiveUserImporterBundle to your composer.json file:

$ composer require netinteractive/user-importer-bundle "~0.1"

Register the bundle in app/AppKernel.php:

public function registerBundles()
{
    return array(
        // ...
        new NetInteractive\Bundle\UserImporterBundle\NetInteractiveUserImporterBundle(),
    );
}

Register bundle routes app/config/routing.yml

net_interactive_user_importer:
    resource: "@NetInteractiveUserImporterBundle/Resources/config/routing.xml"
    prefix:   /

Update your database schema or use migrations to synchronize database

bin/console doctrine:schema:update --force

Then go to page http(s)://your.domain/user/importer/upload to begin.

Testing

Setup the test suite using Composer:

$ composer install --dev

PhpSpec

To run Specs (require dev dependencies)

$ vendor/bin/phpspec run

About

Proof of concept - simple users importer with dynamic CSV field selection and db attributes matching

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages