PHPackages                             ibrahimozturkme/easydb - 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. ibrahimozturkme/easydb

ActiveLibrary

ibrahimozturkme/easydb
======================

Short MySQL &amp; PDO Proccess.

372[3 issues](https://github.com/ibrahimozturkme/easydb/issues)PHP

Since Mar 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ibrahimozturkme/easydb)[ Packagist](https://packagist.org/packages/ibrahimozturkme/easydb)[ RSS](/packages/ibrahimozturkme-easydb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![EasyDB](https://camo.githubusercontent.com/85142141f1bc747fb66bbe80bc07fb1cfea266ac3bd76527e0f711e2e2a06d2d/687474703a2f2f6962726168696d6f7a7475726b2e6d652f6173736574732f696d672f61727469636c652f636f7665725f313439303032353737362e6a7067)](http://ibrahimozturk.me/yazi/8-easydb-pdo-kutuphanesi)

### Installing via Composer

[](#installing-via-composer)

`$ composer require "ibrahimozturkme/easydb":"dev-master"

### Constructor

[](#constructor)

- `$database` : String.
- `$host` : String.
- `$username` : String.
- `$password` : String.
- `$charset` : String.

Server Mode

```
 $db = new \EasyDB\Connection('database_name', 'localhost', 'ibrahimozturk', '12341234', 'utf8');

```

Localhost mode

```
 $db = new \EasyDB\Connection('database_name');

```

---

### SQL

[](#sql)

- `$proccess` : String.
- `$table` : String.

    $db-&gt;sql('select', 'articles');

---

### From

[](#from)

- `$fields` : String.

    $db-&gt;sql('select', 'articles')-&gt;from('id, title, article');

---

### Serialize

[](#serialize)

- `$array` : Array. Form data

    $db-&gt;sql('insert', 'articles')-&gt;serialize($\_POST)-&gt;result();

---

### Additional

[](#additional)

- `$type` : String.
- `$array` : Array. Form data

    $db-&gt;sql('update', 'articles')-&gt;serialize($array)-&gt;additional('WHERE id = :id', \['id' =&gt; 2\])-&gt;result();

---

### Result

[](#result)

Query result.

```
 $db->sql('select', 'articles')->result();

```

---

### Examples

[](#examples)

**SELECT - Single**

```
 $query    = $db->sql('select', 'articles')->additional('WHERE id = :id', ['id' => 2])->result();
 echo $query->count;
 echo $query->result->title;

```

**SELECT - Multiple**

```
 $query    = $db->sql('select', 'articles')->result();
 echo $query->count;

 foreach($query->result as $row){
      echo $row->title.'';
 }

```

**SELECT - From**

```
 $query    = $db->sql('select', 'articles')->from('id, title, article')->result();
 echo $query->count;

 foreach($query->result as $row){
      echo $row->title.'';
 }

```

**INSERT**

```
 $insert   = $db->sql('insert', 'articles')->serialize($array)->result();
 echo $insert->last_id;
 echo ($insert->result) ? 'Has been added.' : 'Could not be added.';

```

**UPDATE**

```
 $update   = $db->sql('update', 'articles')->serialize($array)->additional('WHERE id = :id', ['id' => 2])->result();
 echo ($update->result) ? 'Have been updated.' : 'Update failed.';

```

**DELETE**

```
 $delete   = $db->sql('delete', 'articles')->additional('WHERE id = :id', ['id' => 2])->result();
 echo ($update->result) ? 'Has been deleted.' : 'Could not be deleted.';

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccbcfa39df349ae32ff4d8e9cf2614269306bd4bc9178b90ad5029b69bf306b2?d=identicon)[ibrahimozturk.me](/maintainers/ibrahimozturk.me)

---

Top Contributors

[![ibrahimozturkme](https://avatars.githubusercontent.com/u/8567833?v=4)](https://github.com/ibrahimozturkme "ibrahimozturkme (35 commits)")[![irfanevrens](https://avatars.githubusercontent.com/u/166640?v=4)](https://github.com/irfanevrens "irfanevrens (4 commits)")

### Embed Badge

![Health badge](/badges/ibrahimozturkme-easydb/health.svg)

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

PHPackages © 2026

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