2017 © Pedro Peláez
 

kohana-module minion-importer

CLI data import module for Kohana

image

anroots/minion-importer

CLI data import module for Kohana

  • Saturday, March 2, 2013
  • by anroots
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1,104 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

CLI Data Import Module For Kohana

Extends the Minion module to provide a framework for importing/populating data., (*1)

Example terminal session, (*2)

Two main use cases:, (*3)

  • Importing legacy data from external databases
  • Generating dummy sample data

Real world use case

You are tasked with creating a new version of your in-house issue tracker, from scratch. You design your new database model and now you need to import existing data from the old system. The schema has changed so the columns do not match one-to-one and maybe you want to filter out deleted issues and what-knot., (*4)

Use this module to help you do that. Simply define a Minion_Import_* model for your entity to do data fetching, mapping and filtering. See example implementation for companies., (*5)

Usage

  • Create class: Minion_Import_Company
  • Implement Minion_Import_Importable
  • Modify APPPATH.'config/minion/import.php' (copy sample from the module dir), add your new model to the truncate_order and models arrays
  • Run ./minion import from the CLI

Faker

Use fzaninotto/Faker to generate dummy sample/test data with minion-importer., (*6)

Requires

  • Kohana Framework 3.3
  • PHP 5.4
  • Minion, Database, ORM modules

Installation

Place the files in your modules directory

As a Git submodule:

git clone git://github.com/anroots/kohana-minion-importer.git modules/minion-importer

As a Composer dependency

{
    "require": {
        "anroots/minion-importer":"1.*"
    }
}

Activate the module in bootstrap.php.

<?php
Kohana::modules(array(
    ...
    'minion-importer' => MODPATH.'minion-importer',
));

Licence

MIT, do whatever. Pull requests and feedback appreciated., (*7)

The Versions

02/03 2013

dev-3.3/develop

dev-3.3/develop https://github.com/anroots/kohana-minion-importer

CLI data import module for Kohana

  Sources   Download

MIT

The Requires

 

cli import kohana kohana module dummy data data migration

26/02 2013

dev-master

9999999-dev https://github.com/anroots/kohana-minion-importer

CLI data import module for Kohana

  Sources   Download

MIT

The Requires

 

cli import kohana kohana module dummy data data migration

26/02 2013

1.0.1

1.0.1.0 https://github.com/anroots/kohana-minion-importer

CLI data import module for Kohana

  Sources   Download

MIT

The Requires

 

cli import kohana kohana module dummy data data migration

24/02 2013

1.0.0

1.0.0.0 https://github.com/anroots/kohana-minion-importer

CLI data import module for Kohana

  Sources   Download

MIT

The Requires

 

cli import kohana kohana module dummy data data migration