PHPackages                             oasin/db - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. oasin/db

ActiveClass[Database &amp; ORM](/categories/database)

oasin/db
========

A database class which uses the PDO extension, Supports many drivers

111PHP

Since Nov 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/oasin/db)[ Packagist](https://packagist.org/packages/oasin/db)[ RSS](/packages/oasin-db/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PDO Database Class
==================

[](#pdo-database-class)

A database class which uses the PDO extension.

- Allows one connection with the database and deny duplicate connection,
- this speeds up to use the database and reduces the load on the server.
- supports many drivers (mysql, sqlite, PostgreSQL, mssql, sybase, Oracle Call Interface -oci-)

If you have any issue please open issue to fix it.

```
any suggestions would you like added or modified write to us at oasintech@gmail.com

```

### install via composer

[](#install-via-composer)

```
{
	"require" :
	{
		"oasin/db" : "dev-master"
	}
}
```

---

to use class :
==============

[](#to-use-class-)

(config) :
----------

[](#config-)

- go to (database\_config.php) file
- config class as your project need

describe configuration :
------------------------

[](#describe-configuration-)

- fetch : PDO Fetch Style By default, database results will be returned as instances of the PHP stdClass object.
- default : Default Database Connection Name (driver) by default (mysql)
- connections : Database Connections (drivers).

###### &lt;&lt;&lt;&lt;&lt;&lt; set database connection information..! &gt;&gt;&gt;&gt;&gt;&gt;

[](#-set-database-connection-information--)

---

how to use :
============

[](#how-to-use-)

### step 1 :

[](#step-1-)

- Include the class in your project

```
