2017 © Pedro PelĂĄez
 

library xtoy

A simple mechanism to convert thing X to another thing Y csv->xml rss->database

image

beleneglorion/xtoy

A simple mechanism to convert thing X to another thing Y csv->xml rss->database

  • Monday, April 6, 2015
  • by beleneglorion
  • Repository
  • 1 Watchers
  • 3 Stars
  • 7,257 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

xtoy

A configurable engine to convert X to Y :), (*1)

Reader

Reader Classes allow to read data from multiple type of source ( csv files, xls(x),database ) Each "line" of the source is returned as an array and passed to mapper for conversion, (*2)

Mapper

Mapper take a array in input and generate a new one following a set a rules each fields of the new array is calculated using a rule definition, (*3)

Rules a assossiative array the key is the name of the output field the value is an array definiting what to do., (*4)

TODO : Doc of the rules, see samples, (*5)

Writer

Writer take the array at the ouput of the mapper and save it on on the destination resource, it could be files, databases, what you want just need to code it, (*6)

Reporter

The whole process can take time, then if you give to each component (reader,mapper, writer) a reporter, they can report the current status of the conversion (total lines, lines read, line write, line mapped), (*7)

The Versions

06/04 2015

dev-master

9999999-dev http://beleneglorion.github.io/xtoy

A simple mechanism to convert thing X to another thing Y csv->xml rss->database

  Sources   Download

MIT

The Requires

 

The Development Requires

csv json xml excel html converter writer spreadsheet reader document