2017 © Pedro Peláez
 

project console-import-standard-edition

A boilerplate for console-based data import scripts

image

florianeckerstorfer/console-import-standard-edition

A boilerplate for console-based data import scripts

  • Wednesday, August 27, 2014
  • by florianeckerstorfer
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Console Import Standard Edition

A boilerplate for console-based data import scripts using symfony/console and ddeboer/data-import., (*1)

Installation

You need Composer to create a new data import script:, (*2)

$ curl -s http://getcomposer.org/installer | php

After you have installed Composer you can create a new project using the following command:, (*3)

$ php composer.phar create-project florianeckerstorfer/console-import-standard-edition path/to/install

The sample classes provided in this project reside in the Acme\DemoImport namespace. However, since this project uses PSR-4 I can place the classes directly in the src/ directory. Currently only the Command directory contains a file and you should open it and change the namespace according to your needs. You also have to adapt the namespace in composer.json in the autoload.psr-4 option., (*4)

Usage

After implementing your import logic in a command you can run the application:, (*5)

$ php bin/app.php

This will give you a list of all available commands. The demo command is called import and you need to call it the name of a CSV file., (*6)

$ php bin/app.php import ~/my-data.csv

Adding Additional Commands

You can add additional commands to the application by creating a command and adding it to the application. Learn more about creating commands in the Console documentation., (*7)

# bin/app.php

$console->add(new \Acme\DemoImport\Command\ImportCommand());
$console->add(new \Acme\DemoImport\Command\OtherCommand());

Author

Developed by Florian Eckerstorfer in Vienna, Europe. I am @Florian_ on Twitter. I post updates for my open source projects using the Twitter handle @braincrafted., (*8)

The Versions

27/08 2014

0.1.x-dev

0.1.9999999.9999999-dev

A boilerplate for console-based data import scripts

  Sources   Download

MIT

The Requires

 

27/08 2014

dev-master

9999999-dev

A boilerplate for console-based data import scripts

  Sources   Download

MIT

The Requires

 

27/08 2014

v0.1

0.1.0.0

A boilerplate for console-based data import scripts

  Sources   Download

MIT

The Requires