PHP Classes

Orion2: Convert files between CSV, SQL, XML, JSON formats

Recommend this page to a friend!
  Info   View files Example   View files View files (31)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-06-15 (Yesterday) RSS 2.0 feedNot enough user ratingsTotal: 414 This week: 1All time: 6,453 This week: 69Up
Version License PHP version Categories
orion2 1.0.10GNU General Publi...5.0PHP 5, Files and Folders, Parsers
Description 

Author

This class can convert files between CSV, SQL, XML, JSON formats.

It can parse a XML file with definitions of a conversion process that defines parameters like file formats to convert, field delimiters, database tables and fields, custom filter PHP code, etc..

The class parse a given input file and converts it to the target format according to the specified configurations.

Picture of Everton da Rosa
  Performance   Level  
Name: Everton da Rosa <contact>
Classes: 17 packages by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 3x

Recommendations

Convert txt to array
i want to search data from txt and display in browser

Example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
    <title>Orion2 :: arquivo-teste</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="generator" content="Geany 0.19.1" />
</head>

<body>

<?php

require '../config/config.php';
require
'../app/orion2.php';

$data = Orion::parseSource('csv2sql.xml', 'sample.csv');

XtUtils::printr($data);

?>

<h1>Fim</h1>

</body>

</html>


  Files folder image Files  
File Role Description
Files folder imageapp (1 file)
Files folder imageconfig (2 files)
Files folder imagedoc (1 file)
Files folder imageexamples (19 files)
Files folder imagelibs (1 file)
Files folder imagetmp (1 file)
Files folder imagextphp (5 files)
Accessible without login Plain text file licence.txt Lic. Documentation

  Files folder image Files  /  app  
File Role Description
  Plain text file orion2.php Class Class source

  Files folder image Files  /  config  
File Role Description
  Accessible without login Plain text file config.php Conf. Configuration script
  Accessible without login Plain text file error.php Conf. Configuration script

  Files folder image Files  /  doc  
File Role Description
  Accessible without login Plain text file index.php Doc. Example script

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file csv2sql.php Example Example script
  Accessible without login Plain text file csv2sql.xml Data Auxiliary data
  Accessible without login Plain text file filter-fn.php Example Example script
  Accessible without login Plain text file filter-fn.xml Data Auxiliary data
  Accessible without login Plain text file filter-len.php Example Example script
  Accessible without login Plain text file filter-len.xml Data Auxiliary data
  Accessible without login Plain text file filter-none.php Example Example script
  Accessible without login Plain text file filter-none.xml Data Auxiliary data
  Accessible without login Plain text file filter-regex.php Example Example script
  Accessible without login Plain text file filter-regex.xml Data Auxiliary data
  Accessible without login Plain text file fixed2csv.php Example Example script
  Accessible without login Plain text file fixed2csv.xml Data Auxiliary data
  Accessible without login Plain text file report.txt Doc. Documentation
  Accessible without login Plain text file report2csv.php Example Example script
  Accessible without login Plain text file report2csv.xml Data Auxiliary data
  Accessible without login Plain text file sample-fixed.txt Data Auxiliary data
  Accessible without login Plain text file sample.csv Data Auxiliary data
  Accessible without login Plain text file special.php Example Example script
  Accessible without login Plain text file special.xml Data Auxiliary data

  Files folder image Files  /  libs  
File Role Description
  Accessible without login Plain text file utils.php Aux. Auxiliary script

  Files folder image Files  /  tmp  
File Role Description
  Accessible without login Plain text file project1.xml Data Auxiliary data

  Files folder image Files  /  xtphp  
File Role Description
  Accessible without login Plain text file error.php Conf. Auxiliary script
  Plain text file mysql.php Class Auxiliary script
  Plain text file store.php Class Auxiliary script
  Plain text file template.php Class Auxiliary script
  Plain text file utils.php Class Auxiliary script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:414
This week:1
All time:6,453
This week:69Up