2017 © Pedro PelĂĄez
 

library db2file

Retrieve data from database and generate/print JSON or XML file.

image

natanaelsimoes/db2file

Retrieve data from database and generate/print JSON or XML file.

  • Wednesday, January 25, 2017
  • by natanaelsimoes
  • Repository
  • 1 Watchers
  • 0 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

DB2FILE

Retrieve data from database and generate/print JSON or XML file., (*1)

Installation

This library can be found on Packagist. We endorse that everything will work fine if you install this through composer., (*2)

Add in your composer.json:, (*3)

{
    "require": {
        "natanaelsimoes/db2file": "1.0.0-beta"
    }
}

or in your bash:, (*4)

$ composer require natanaelsimoes/db2file

Features

  • PSR-4 compliant for easy interoperability
  • Uses PDO to cover majority databases (Firebird, MySQL, Oracle, PostgreSQL, SQLite, Microsoft SQL Server)
  • Easy to add support for others PDO database drivers as needed
  • Gets and prints JSON/XML version of your tables and queries

See documentation docs/ for futher details about this library., (*5)

Usage

<?php
require 'vendor/autoload.php'
// Database configuration
$driver = DB2FILE\Converter::MySQL;
$dbname = 'information_schema';
$host = 'localhost';
$username = 'root';
$password = '123';
// Create converter
$converter = new DB2FILE\Converter($driver, $dbname, $host, $username, $password);
// Print the XML file in text/xml format
$converter->printXMLFromTable('ENGINES');
?>

The Versions

25/01 2017

dev-master

9999999-dev https://github.com/natanaelsimoes/db2file

Retrieve data from database and generate/print JSON or XML file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

database json xml converter conversion

08/03 2016

1.0.0-beta

1.0.0.0-beta https://github.com/natanaelsimoes/db2file

Retrieve data from database and generate/print JSON or XML file.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

database json xml converter conversion