PHPackages                             codeboxsql/php - 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. codeboxsql/php

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

codeboxsql/php
==============

A PHP Wrapper for the mysqli class

v1(3y ago)012MITPHPPHP ^7.3|^8.0

Since Apr 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/esiokugbechoice/codeboxsql)[ Packagist](https://packagist.org/packages/codeboxsql/php)[ RSS](/packages/codeboxsql-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

codeboxsql
==========

[](#codeboxsql)

Wrapper for the PHP MySQLi Extension

Requirements
------------

[](#requirements)

- PHP ^7.3

Installation
------------

[](#installation)

To install with composer run the following command

```
composer require codeboxsql/php

```

Usage
-----

[](#usage)

```
//Autoload classes using composer
require_once 'vendor/autoload.php';
//OR
//Include the classes directly from path
require_once 'vendor/codeboxsql/php/dist/mysql.php';

$host = 'localhost';
$user = 'root';
$pass = '';
$database = 'test';

$mysqli = new codeboxsql\mysql($host, $user, $pass, $database);

//INSERT
$mysqli->insertInto('tableOne',array('name' => 'lolo' , 'deg' => '100')); //return string

//SELECT
//Single Select
$mysqli->singleSelect('accounts',array('id' => '60' , 'mobile' => '+2348023775657'), 'fetch', array('ORDER BY' => 'rand()' , 'LIMIT' => '3')); //return array
$mysqli->singleSelect('accounts',array('id' => '60' , 'mobile' => '+2348023775657'), 'count', array('ORDER BY' => 'rand()' , 'LIMIT' => '3')); //return string
//multi Select
$mysqli->multiSelect(array('accounts' => 'a' , 'bvn' => 'b'),array('a.id' => '60' , 'b.usrID' => '60'), 'fetch', array('ORDER BY' => 'rand()' , 'LIMIT' => '3'));// return array
//$mysqli->multiSelect(array('accounts' => 'a' , 'bvn' => 'b'),array('a.id' => '60' , 'b.usrID' => '60'), 'count', array('ORDER BY' => 'rand()' , 'LIMIT' => '3')); //return string
```

Examples
--------

[](#examples)

Look to the scripts in the `examples.php` file in your browser.

Contributing
------------

[](#contributing)

If you encounter a bug or have a suggestion to help improve this liobrary for others, you are welcome to open a Github issue on this repository and it will be reviewed by our development team.

License
-------

[](#license)

MIT - see LICENSE

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

1135d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/19bbb39c2ae13aa0f54115bbb8825992a47634892bd56b821f92b4496d50ca15?d=identicon)[snipnettech](/maintainers/snipnettech)

---

Top Contributors

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

---

Tags

codeboxmysqliphp

### Embed Badge

![Health badge](/badges/codeboxsql-php/health.svg)

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

###  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)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

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

Reliese Components for Laravel Framework code generation.

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

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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