Download the PHP package anroots/minion-importer without Composer
On this page you can find all versions of the php package anroots/minion-importer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anroots/minion-importer
More information about anroots/minion-importer
Files in anroots/minion-importer
Package minion-importer
Short Description CLI data import module for Kohana
License MIT
Homepage https://github.com/anroots/kohana-minion-importer
Informations about the package minion-importer
CLI Data Import Module For Kohana
Extends the Minion module to provide a framework for importing/populating data.

Two main use cases:
- 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.
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.
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 thetruncate_orderandmodelsarrays - Run
./minion importfrom the CLI
Faker
Use fzaninotto/Faker to generate dummy sample/test data with minion-importer.
Requires
- Kohana Framework 3.3
- PHP 5.4
- Minion, Database, ORM modules
Installation
Place the files in your modules directory
As a Git submodule:
As a Composer dependency
Activate the module in bootstrap.php.
Licence
MIT, do whatever. Pull requests and feedback appreciated.