PHPackages                             slvler/mysql-connectors - 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. slvler/mysql-connectors

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

slvler/mysql-connectors
=======================

Mysql driver development that can be used on the php side

v1.2.1(1y ago)89MITPHP

Since Jan 20Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

php-mysql-connectors
====================

[](#php-mysql-connectors)

[![tests](https://github.com/slvler/php-mysql-connectors/actions/workflows/tests.yml/badge.svg)](https://github.com/slvler/php-mysql-connectors)[![Latest Stable Version](https://camo.githubusercontent.com/98ff1458a776914ad8ba2acb12cc4c645728ae65d58040f90e1678d98aafd9af/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f6d7973716c2d636f6e6e6563746f72732f76)](https://packagist.org/packages/slvler/mysql-connectors)[![Latest Unstable Version](https://camo.githubusercontent.com/f3763468df3e9be9500270a9cdafab282292ee347fe06f15a646bd13219d02a1/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f6d7973716c2d636f6e6e6563746f72732f762f756e737461626c65)](https://packagist.org/packages/slvler/mysql-connectors)[![License](https://camo.githubusercontent.com/84513cd4cb50dca08c9cd9d2023c7b16705dd27db9777937c7506da552a050cf/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f6d7973716c2d636f6e6e6563746f72732f6c6963656e7365)](https://packagist.org/packages/slvler/mysql-connectors)[![Total Downloads](https://camo.githubusercontent.com/af3432f774cbcd33b460c8b065ee23c1b0efcafcfc55122253222b77ac750487/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f6d7973716c2d636f6e6e6563746f72732f646f776e6c6f616473)](https://packagist.org/packages/slvler/mysql-connectors)

Mysql driver development that can be used on the php side

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

[](#installation)

To install this package tou can use composer:

```
composer require slvler/mysql-connectors
```

Usage
-----

[](#usage)

```
use slvler\mysqlconnectors\Constant;
use slvler\mysqlconnectors\Config\Method;
use slvler\mysqlconnectors\Database\DatabaseController;

$Constant = new Constant();

$db = new DatabaseController($Constant->showDBHost(), $Constant->showDBName(), $Constant->showDBUser(), $Constant->showDBPassword(), $Constant->showConnection());
```

Basic Table // use northwind
----------------------------

[](#basic-table--use-northwind)

#### table "orders"

[](#table-orders)

OrderIDEmployeeIDShipName102496red102504yellow102513green102524yellow102533red#### Insert Method (TableName, Data = array()):

[](#insert-method-tablename-data--array)

TableName, Data:

```
$tableName = "Orders";

$data = Array
(
  "ShipName" => "Blue",
  "ShipAddress" => "Nottingham",
  "ShipCity" => "UK"
);
```

### Insert Method

[](#insert-method)

```
$methodInsert = $method->Insert($tableName,$data);
```

#### Update Method (TableName, Id = array() , Data = array()):

[](#update-method-tablename-id--array--data--array)

TableName, Id , Data:

```
$tableName = "Orders";

$Id = array(
 "OrderID" => "1"
);

$data = Array
(
  "ShipName" => "Blue",
  "ShipAddress" => "Nottingham",
  "ShipCity" => "UK"
);
```

### Update Method

[](#update-method)

```
$methodUpdate = $method->Update($tableName', $id, $data);
```

### Delete Method (TableName, Id = array()):

[](#delete-method-tablename-id--array)

TableName, Id:

```
$tableName = "Orders";

$Id = array(
 "OrderID" => "1"
);
```

### Delete Method

[](#delete-method)

```
$methodDelete = $method->Delete($tableName,$id);
```

### Select\_all Method (TableName):

[](#select_all-method-tablename)

TableName:

```
$tableName = "Orders";
```

### Select\_all Method

[](#select_all-method)

```
$methodSelectAll = $method->Select_all($tableName);
```

### Select\_ch Method (TableName, Data = array()):

[](#select_ch-method-tablename-data--array)

TableName, Data:

```
$tableName = "Orders";

$data = Array
(
  "ShipName", "ShipAddress", "ShipCity"
);
```

### Select\_ch Method

[](#select_ch-method)

```
$methodSelectCh = $method->Select_ch($tableName,$data);
```

#### Select\_wh Method (TableName, Data = array(), Conn = array(), If = array()):

[](#select_wh-method-tablename-data--array-conn--array-if--array)

TableName, Data, Conn, If:

```
$tableName = "Orders";
$data = Array
(
    "EmployeeID" => "4"
);
$conn = Array
(
    "!="
);
$if = Array
(
    "AND"
);
```

### Select\_wh Method

[](#select_wh-method)

```
$methodSelectWh =  $method->Select_wh($tableName, $data, $conn, $if);
```

### Testing

[](#testing)

```
vendor\bin\phpunit
```

Credits
-------

[](#credits)

- [slvler](https://github.com/slvler)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/slvler/slvler/blob/main/LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity10

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

Every ~212 days

Total

4

Last Release

574d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ab8128832fb3e8a0d513453a903d7c49475f5f89dbf7ec39cf1d0518026b7ea?d=identicon)[slvler](/maintainers/slvler)

---

Top Contributors

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

---

Tags

examplemysqlmysql-clientmysql-connectormysql-databasemysqlconnectorphpphpmyadmin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/slvler-mysql-connectors/health.svg)

```
[![Health](https://phpackages.com/badges/slvler-mysql-connectors/health.svg)](https://phpackages.com/packages/slvler-mysql-connectors)
```

###  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)
