PHPackages                             yusrub/database-mysqli-interface - 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. yusrub/database-mysqli-interface

ActiveLibrary

yusrub/database-mysqli-interface
================================

Basic database interface using MySqli

1.0.0(6y ago)081MITPHP

Since Jun 8Pushed 6y agoCompare

[ Source](https://github.com/yusrub/database-mysqli-interface)[ Packagist](https://packagist.org/packages/yusrub/database-mysqli-interface)[ RSS](/packages/yusrub-database-mysqli-interface/feed)WikiDiscussions master Synced 6d ago

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

MySqli Interface
================

[](#mysqli-interface)

MySqli Interface is a php code which use to do basic CRUD operation.

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

[](#installation)

Use the composer to install database-mysqli-interface.

```
composer require yusrub/database-mysqli-interface
```

Usage
-----

[](#usage)

```

require 'vendor/autoload.php';

$database = new Database('host', 'dbname', 'username', 'password'); # connect to database

# select all records from table
$database->select('tableName');
# apply where condition while selecting records from table where condtion can be string/array
$database->select('tableName', 'id = 5');
#multiple condition
$database->select('tableName', array(id => 5, age => 23));
#limit the records
$database->select('tableName', 'id = 5', $limit=5);
#insert the records
$database->insert('table',array(field1=>value1, field2=>value2))
#update the records
$database->update('table',array(field1=>value1, field2=>value2), 'condition_field = 2')
#delete the records
$database->delete('table', 'condition_field = 2')
$database->delete('table', array('condition_field => [1,2]))

```

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

2535d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6db746407fdae408482b55025c4b578c1025d5e328c042171e18feba6b3c63d8?d=identicon)[yusrub](/maintainers/yusrub)

---

Top Contributors

[![gul-rfg](https://avatars.githubusercontent.com/u/72442050?v=4)](https://github.com/gul-rfg "gul-rfg (1 commits)")[![yusrub](https://avatars.githubusercontent.com/u/13325455?v=4)](https://github.com/yusrub "yusrub (1 commits)")

---

Tags

mysqlimysqli-connectionphp

### Embed Badge

![Health badge](/badges/yusrub-database-mysqli-interface/health.svg)

```
[![Health](https://phpackages.com/badges/yusrub-database-mysqli-interface/health.svg)](https://phpackages.com/packages/yusrub-database-mysqli-interface)
```

PHPackages © 2026

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