|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2017-06-10 (3 months ago) || 68%||Total: 763 This week: 4||All time: 4,285 This week: 163|
This class can run queries with PDO and get results in XML and JSON.
It can connect to a given database using the PDO extension and retrieves the results into arrays, objects, XML documents, CSV files or JSON strings.
The class supports prepared queries, transactions, stored procedures, etc..
Light database abstraction layer (PDO)
To install the package we only have to add the dependency to *composer.json* file:
And run the following command:
Install without Composer
Also we can use this library without Composer, we only have to include in our script the "database/autoload.php" file.
Now we have to create the instance and add a new connection to it.
$db = new OtherCode\Database\Database();
'driver' => 'mysql',
'host' => 'localhost',
'dbname' => 'test',
'username' => 'username',
'password' => 'password'
||Applications that use this package
If you know an application of this package, send a message to the author to add a link here.
||Other classes that need this package
||Why it is needed
||The Simple Framework uses this class as the abstract layer to access to database