PHPackages                             geeshoe/dbclass - 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. geeshoe/dbclass

Abandoned → [geeshoe/dblib](/?search=geeshoe%2Fdblib)ArchivedLibrary[Database &amp; ORM](/categories/database)

geeshoe/dbclass
===============

PHP class to connect to mysql using PDO

0.3.0(8y ago)0981PHP

Since Jan 3Pushed 8y agoCompare

[ Source](https://github.com/geeShoe/dbClass-php)[ Packagist](https://packagist.org/packages/geeshoe/dbclass)[ RSS](/packages/geeshoe-dbclass/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (5)Used By (1)

dbClass-php
===========

[](#dbclass-php)

dbClass-php has been depreciated. It has been replaced by [geeShoe/DbLib](https://github.com/geeShoe/DbLib)
-----------------------------------------------------------------------------------------------------------

[](#dbclass-php-has-been-depreciated-it-has-been-replaced-by-geeshoedblib)

Class for connecting to mysql databases that extends the PHP PDO extension. The goal is to automate many common mySql methods for projects that rely heavily on mysql.

Please note that this project is in initial development and as such, some documentation may be incomplete.

Getting Started
---------------

[](#getting-started)

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Prerequisites

[](#prerequisites)

Current development of the project is being done with PHP 7.2, however earlier versions of PHP that support the mysql pdo extension will work. To check if the PDO mysql driver is enabled, run the following command in the CLI or add it to a page in your webroot

```
phpinfo();

```

and ensure PDO drivers lists mysql. If it doesn't or you cannot find any mention of PDO in phpinfo(). You may need to recompile PHP using:

```
./configure --with-pdo-mysql

```

### Installing

[](#installing)

To add DbClass to your project, run:

```
composer require geeshoe/dbclass

```

If you prefer to use the development branch of dbClass-php, change the following line of code in the composer.json file.

```
composer require geeshoe/dbclass dev-develop

```

### Configure

[](#configure)

Copy the included sample\_config.ini to the parent directory of your vendor folder and rename it to DbConfig.ini. Change the values in the mysql section to reflect your database configuration.

Setting AltPath to /some/other/path/config.ini will use the configuration directives in the specified config file rather than the ones in DbConfig.ini.

```
[config]
AltPath =

[mysql]
hostName = 127.0.0.1   //Points to the mysql server. Usually 127.0.0.1 or localhost
port = 3306   //Typically the mysql port is 3306
dataBase = dbClassTest   //The name of the database which you will be using.
userName = testUser   //Both the username and password for the mysql account used to manipulate the mysql database
passWord = me6wp3Ha92n

```

### Documentation

[](#documentation)

The API is documented in docs/api/index.html

@TODO - Provide examples on how to use the dam thing.

### Authors

[](#authors)

- **Jesse Rushlow** - *Lead developer* - [geeShoe Development](http://geeshoe.com)

Source available at ()

For questions, comments, or rant's, drop me a line at

```
jr (at) geeshoe (dot) com

```

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~39 days

Total

3

Last Release

3067d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/78608789?v=4)[Rushlow Development](/maintainers/rushlow-development)[@rushlow-development](https://github.com/rushlow-development)

---

Top Contributors

[![jrushlow](https://avatars.githubusercontent.com/u/40327885?v=4)](https://github.com/jrushlow "jrushlow (22 commits)")

### Embed Badge

![Health badge](/badges/geeshoe-dbclass/health.svg)

```
[![Health](https://phpackages.com/badges/geeshoe-dbclass/health.svg)](https://phpackages.com/packages/geeshoe-dbclass)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

2920.0k](/packages/voku-session2db)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
