Recommend this page to a friend! |
![]() |
Info | Screenshots | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
![]() ![]() ![]() ![]() | Total: 829 | All time: 4,173 This week: 43![]() |
Version | License | PHP version | Categories | |||
database-pdo-class 2.29 | GNU General Publi... | 5.3 | PHP 5, Databases |
Description | Author | |
This class can run queries with PDO and get results in XML and JSON. |
What is the best PHP database to xml class?
Output database results in XML
Light database abstraction layer (PDO)
Currently supported:
To install the package we only have to add the dependency to *composer.json* file:
"require": {
"othercode/database": "*"
}
And run the following command:
composer update
Also we can use this library without Composer, we only have to include in our script the "database/autoload.php" file.
require_once "database/autoload.php".
Now we have to create the instance and add a new connection to it.
$db = new OtherCode\Database\Database();
$db->addConnection(array(
'driver' => 'mysql',
'host' => 'localhost',
'dbname' => 'test',
'username' => 'username',
'password' => 'password'
));
Screenshots (2) | ||
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Aux. | Auxiliary script | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | Licence | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Readme |
![]() |
/ | examples |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() ![]() |
Example | Example script | ||
![]() ![]() |
Data | Auxiliary data |
![]() |
/ | examples | / | sql |
File | Role | Description |
---|---|---|
![]() ![]() |
Data | Auxiliary data |
![]() ![]() |
Data | Auxiliary data |
![]() ![]() |
Data | Auxiliary data |
![]() |
/ | src |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
Class | Class source |
![]() |
/ | src | / | Connectors |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
/ | src | / | Exceptions |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
![]() | database-pdo-class-2024-01-09.zip 180KB |
![]() | database-pdo-class-2024-01-09.tar.gz 176KB |
![]() | Install with Composer |
Version Control | Reuses | Unique User Downloads | Download Rankings | ||||||||||||||||
91% | 1 |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
Simple Framework (SlaveFramework) |
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 |
Class | Why it is needed | Dependency |
---|---|---|
Simple Framework | The Simple Framework uses this class as the abstract layer to access to database | Required |
Related pages |
GitHub page |
Complete information for Database PDO Class |
Documentation |