PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-06-15 (3 months ago) RSS 2.0 feedNot enough user ratingsTotal: 418 This week: 1All time: 6,418 This week: 41Up
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
Age: 43
All time rank: 78555 in Brazil Brazil
Week rank: 22 Up2 in Brazil Brazil Up
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 (31)  
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 (31)  /  app  
File Role Description
  Plain text file orion2.php Class Class source

  Files folder image Files (31)  /  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 (31)  /  doc  
File Role Description
  Accessible without login Plain text file index.php Doc. Example script

  Files folder image Files (31)  /  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 (31)  /  libs  
File Role Description
  Accessible without login Plain text file utils.php Aux. Auxiliary script

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

  Files folder image Files (31)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:418
This week:1
All time:6,418
This week:41Up