ccetc/import-bundle

Symfony developer bundle for import xls data to your database

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Type:symfony-bundle

dev-master 2014-04-29 22:28 UTC

This package is not auto-updated.

Last update: 2024-10-26 14:21:13 UTC


README

The CCETCImportBundle is a Symfony bundle for importing xls spreadsheets to your Symfony DB.

It is in beta, and is only currently written to be used with SonataAdmin and Doctrine. It is also only meant to be used by developers at this point.

Development is tracked on the trello board.

Installation

Add to your composer.json:

"require": {
    "ccetc/import-bundle": "dev-master"
}

Run php composer.phar install

Add to AppKernel.php:

new CCETC\ImportBundle\CCETCImportBundle(),

Add to your routing:

ccetc_import:
    resource: "@CCETCImportBundle/Resources/config/routing.yml"
    prefix:   /

Security

The tool is accessed at admin/import, so make sure this route is secured in security.yml.

Handlers

You'll need to write a handler to essentially map your database to a xls with an expected set of fields. Your handler should exist as a service in your application, and should extend a handler in Import/Handler.

Use

Navigate to admin/import, and specify your handler service and file path.