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 (9 months ago) RSS 2.0 feedNot enough user ratingsTotal: 418 All time: 6,421 This week: 35Up
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  
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

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:0
All time:6,421
This week:35Up