PHPackages                             tafoyaventures/phpmysqllib - 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. tafoyaventures/phpmysqllib

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

tafoyaventures/phpmysqllib
==========================

PHP MySQLi Client Library.

0.0.3(6y ago)022MITPHPPHP &gt;=5.6.0

Since Apr 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tafoyaventures/MySQLLib)[ Packagist](https://packagist.org/packages/tafoyaventures/phpmysqllib)[ Docs](https://github.com/tafoyaventures/MySQLLib)[ RSS](/packages/tafoyaventures-phpmysqllib/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Tafoya Ventures MySQLi Support Library
======================================

[](#tafoya-ventures-mysqli-support-library)

- @copyright 2001 - 2019, Brian Tafoya.
- @package MySQLLib
- @author Brian Tafoya
- @version 1.0
- @license MIT
- @license  The MIT License
- @category MySQL\_Support\_Library
- @link  Tafoya Ventures

### Example

[](#example)

`$db = new MySQLLib("{database_username}"),{database_password},{database_name},{database_server_hostname});`

Execute a select, with the response in on of three formats: Numeric Array \[ARRAY\_N\], Associative Array \[ARRAY\_A\], or an Object \[OBJECT\] which is the default.

`$my_tables = $db->get_results(“SHOW TABLES”, ARRAY_N);`

Execute a select which returns one row, with the response in on of three formats: Numeric Array \[ARRAY\_N\], Associative Array \[ARRAY\_A\], or an Object \[OBJECT\] which is the default.

`$my_tables = $db->get_row(“SELECT * FROM example LIMIT 1”, ARRAY_N);`

Execute a select which returns one column, with the response in on of three formats: Numeric Array \[ARRAY\_N\], Associative Array \[ARRAY\_A\], or an Object \[OBJECT\] which is the default.

`$my_tables = $db->get_col(“SELECT example_col FROM example”, ARRAY_N);`

Execute a select which returns one value.

`$my_tables = $db->get_var(“SELECT example_col FROM example LIMIT 1”);`

Execute a query, INSERT returns ID when record created.

`$newRowID = $db->query(“INSERT INTO example_table SET example_col = 1”);`

Execute a multiple queries.

`$db->queryMulti(“INSERT INTO example_table SET example_col = 1; INSERT INTO example_table SET example_col = 2;”);`

Escape a text string.

`$escaped_string = (string)$db->escape(“Hello Word”);`

#### Developer

[](#developer)

Brian Tafoya

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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 ~150 days

Total

3

Last Release

2296d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f2a110a0584defebf67f20a814a73e1fd431f6203d1bbc25bd6056cc172a95d?d=identicon)[btafoya](/maintainers/btafoya)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tafoyaventures-phpmysqllib/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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