PHPackages                             eftec/daoone - 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. eftec/daoone

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

eftec/daoone
============

Procedural MysqlI Data access class in a single Class

3.30(6y ago)93.4k3MITPHPCI failing

Since Jun 9Pushed 6y ago2 watchersCompare

[ Source](https://github.com/EFTEC/DaoOne)[ Packagist](https://packagist.org/packages/eftec/daoone)[ Docs](https://github.com/EFTEC)[ RSS](/packages/eftec-daoone/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (1)Versions (30)Used By (0)

Database Access Object wrapper for PHP and MySqli in a single class
===================================================================

[](#database-access-object-wrapper-for-php-and-mysqli-in-a-single-class)

DaoOne. It's a simple wrapper for Mysqli

This library is as fast as possible. Most of the operations are simple string/array managements.

> Note: This release is moved to
> PdoOne does the same job but it works with PDO library (instead of MySQLi). Right now PdoOne works with Mysqli and SqlSrv but it has many other features that will not be present on DaoOne

[![Build Status](https://camo.githubusercontent.com/8389a70d623e0b2842a214998eb7a19528d8226512e340bffec6ef9b8be94fc7/68747470733a2f2f7472617669732d63692e6f72672f45465445432f44616f4f6e652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/EFTEC/DaoOne)[![Packagist](https://camo.githubusercontent.com/5e8fc46945c4e62c7080b23773164ccfba9881469c27544ef45ad961c3dbf1d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65667465632f64616f6f6e652e737667)](https://packagist.org/packages/eftec/daoone)[![Total Downloads](https://camo.githubusercontent.com/1af37c56e235a9f3971b82f53f26cb436c260fbc3287339ba092c11d5331b1ce/68747470733a2f2f706f7365722e707567782e6f72672f65667465632f64616f6f6e652f646f776e6c6f616473)](https://packagist.org/packages/eftec/daoone)![Maintenance](https://camo.githubusercontent.com/0080c39e8991e448d139858f9038668b6078ad14a26bacb65acf2ec3bfa9d661/68747470733a2f2f696d672e736869656c64732e696f2f6d61696e74656e616e63652f7965732f323032302e737667)![composer](https://camo.githubusercontent.com/08623182d7b037246f11c0ad4aec3fe405dcf9d668058398497abd1a9a770e9d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f7365722d253345312e362d626c75652e737667)![php](https://camo.githubusercontent.com/62fb387978945851f2340aa880bfc2a4164d74b4efcdf06b40833d91998dd145/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345352e362d677265656e2e737667)![php](https://camo.githubusercontent.com/0d20998129714e2662748003f3e0fab165e7f10d9dd4eb097376217b12c07b15/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e782d677265656e2e737667)![CocoaPods](https://camo.githubusercontent.com/347353606ed8f26b45bcf9da083db0063fa1dadd1baef36a5f3bf9ce1d127548/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d37302532352d79656c6c6f772e737667)

Migrating to eftec/PdoOne
=========================

[](#migrating-to-eftecpdoone)

Adding the dependency
---------------------

[](#adding-the-dependency)

Install via composer

> composer require eftec/pdoone

This library could works in tandem with eftec/daoone.

Changing the library
--------------------

[](#changing-the-library)

Change the class, instead of use eftec/daoone -&gt; eftec/pdoone

Example:

Before:

```
/** @var \eftec\DaoOne $db */
$db=null;
```

After:

```
/** @var \eftec\PdoOne $db */
$db=null;
```

Constructor
-----------

[](#constructor)

Before:

```
$db=new DaoOne('127.0.0.1','root','abc.123','sakila');
```

After:

```
$db=new DaoOne('mysql','127.0.0.1','root','abc.123','sakila'); // check 'mysql'
```

Operators
---------

[](#operators)

If we use DaoOne::runGen(false), then we must check the result. runGen (DaoOne) returns a mysqli\_result object. runGen (PdoOne) returns a pdostatement object.

Before:

```
$result=$db->runGen(false); // it returns a mysqli_result
$result->fetch_assoc();
$result->free_result();
```

After:

```
$result=$db->runGen(false); // it returns a pdostatement
$result->fetch( PDO::FETCH_ASSOC);
$result=null;
```

How it works?
=============

[](#how-it-works)

Turn this

```
$stmt->bind_param("s", $_POST['name']);
$stmt->execute();
$result = $stmt->get_result();
if($result->num_rows === 0) exit('No rows');
while($row = $result->fetch_assoc()) {
  $ids[] = $row['id'];
  $names[] = $row['name'];
  $ages[] = $row['age'];
}
var_export($ages);
$stmt->close();

```

into this

```
$products=$dao
    ->select("*")
    ->from("myTable")
    ->where("name = ?",[$_POST['name']])
    ->toList();

```

Table of Content
----------------

[](#table-of-content)

- [DaoOne](#daoone)
    - [Install (using composer)](#install--using-composer-)
    - [Install (manually)](#install--manually-)
    - [Usage](#usage)
        - [Start a connection](#start-a-connection)
        - [Run an unprepared query](#run-an-unprepared-query)
        - [Run a prepared query](#run-a-prepared-query)
        - [Run a prepared query with parameters.](#run-a-prepared-query-with-parameters)
        - [Return data (first method)](#return-data--first-method-)
        - [Return data (second method)](#return-data--second-method-)
        - [Running a transaction](#running-a-transaction)
    - [Query Builder (DQL)](#query-builder--dql-)
        - [select($columns)](#select--columns-)
        - [distinct($distinct='distinct')](#distinct--distinct--distinct--)
        - [from($tables)](#from--tables-)
        - [where($where,\[$arrayParameters=array()\])](#where--where---arrayparameters-array----)
        - [order($order)](#order--order-)
        - [group($group)](#group--group-)
        - [having($having,\[$arrayParameters\])](#having--having---arrayparameters--)
        - [runGen($returnArray=true)](#rungen--returnarray-true-)
        - [toList()](#tolist--)
        - [toResult()](#toresult--)
        - [first()](#first--)
        - [last()](#last--)
        - [sqlGen()](#sqlgen--)
    - [Query Builder (DML), i.e. insert, update,delete](#query-builder--dml---ie-insert--update-delete)
        - [insert($table,$schema,\[$values\])](#insert--table--schema---values--)
        - [update($$table,$schema,$values,\[$schemaWhere\],\[$valuesWhere\])](#update---table--schema--values---schemawhere----valueswhere--)
        - [delete($table,$schemaWhere,\[$valuesWhere\])](#delete--table--schemawhere---valueswhere--)
    - [Changelist](#changelist)

Install (using composer)
------------------------

[](#install-using-composer)

>

Add to composer.json the next requirement, then update composer.

```
  {
      "require": {
        "eftec/daoone": "^3.15"
      }
  }
```

or install it via cli using

> composer require eftec/daoone

Install (manually)
------------------

[](#install-manually)

Just download the file lib/DaoOne.php and save it in a folder.

Usage
-----

[](#usage)

### Start a connection

[](#start-a-connection)

```
$dao=new DaoOne("127.0.0.1","root","abc.123","sakila","");
$dao->connect();
```

where

- 127.0.0.1 is the server where is the database.
- root is the user
- abc.123 is the password of the user root.
- sakila is the database used.
- "" (optional) it could be a log file, such as c:\\temp\\log.txt

### Run an unprepared query

[](#run-an-unprepared-query)

```
$sql="CREATE TABLE `product` (
    `idproduct` INT NOT NULL AUTO_INCREMENT,
    `name` VARCHAR(45) NULL,
    PRIMARY KEY (`idproduct`));";
$dao->runRawQuery($sql);
```

### Run a prepared query

[](#run-a-prepared-query)

```
$sql="insert into `product`(name) values(?)";
$stmt=$dao->prepare($sql);
$productName="Cocacola";
$stmt->bind_param("s",$productName); // s stand for string. Also i =integer, d = double and b=blob
$dao->runQuery($stmt);
```

> note: you could also insert using a procedural chain [insert($table,$schema,\[$values\])](#insert--table--schema---values--)

### Run a prepared query with parameters.

[](#run-a-prepared-query-with-parameters)

```
$dao->runRawQuery('insert into `product` (name) values(?)'
    ,array('s','cocacola'));
```

### Return data (first method)

[](#return-data-first-method)

It returns a mysqli\_statement.

```
    $sql="select * from `product` order by name";
    $stmt=$dao->prepare($sql);
    $dao->runQuery($stmt);
    $rows = $stmt->get_result();
    while ($row = $rows->fetch_assoc()) {
        var_dump($row);
    }

```

> This statement must be processed manually.

### Return data (second method)

[](#return-data-second-method)

It returns an associative array.

```
    $sql="select * from `product` order by name";
    $stmt=$dao->prepare($sql);
    $dao->runQuery($stmt);
    $rows = $stmt->get_result();
    $allRows=$rows->fetch_all(MYSQLI_ASSOC);
    var_dump($allRows);
```

### Running a transaction

[](#running-a-transaction)

```
try {
    $sql="insert into `product`(name) values(?)";
    $dao->startTransaction();
    $stmt=$dao->prepare($sql);
    $productName="Fanta";
    $stmt->bind_param("s",$productName);
    $dao->runQuery($stmt);
    $dao->commit(); // transaction ok
} catch (Exception $e) {
    $dao->rollback(false); // error, transaction cancelled.
}
```

#### startTransaction()

[](#starttransaction)

It starts a transaction

#### commit($throw=true)

[](#committhrowtrue)

It commits a transaction.

- If $throw is true then it throws an exception if the transaction fails to commit. Otherwise, it does not.

#### rollback($throw=true)

[](#rollbackthrowtrue)

It rollbacks a transaction.

- If $throw is true then it throws an exception if the transaction fails to rollback. If false, then it ignores if the rollback fail or if the transaction is not open.

### Fields

[](#fields)

### throwOnError=true

[](#throwonerrortrue)

If true (default), then it throws an error if happens an error. If false, then the execution continues

### isOpen=true

[](#isopentrue)

It is true if the database is connected otherwise,it's false.

Query Builder (DQL)
-------------------

[](#query-builder-dql)

You could also build a procedural query.

Example:

```
$results = $dao->select("*")->from("producttype")
    ->where('name=?', ['s', 'Cocacola'])
    ->where('idproducttype=?', ['i', 1])
    ->toList();
```

### select($columns)

[](#selectcolumns)

Generates a select command.

```
$results = $dao->select("col1,col2")->...
```

> Generates the query: **select col1,col2** ....

```
$results = $dao->select("select * from table")->...
```

> Generates the query: **select \* from table** ....

### distinct($distinct='distinct')

[](#distinctdistinctdistinct)

Generates a select command.

```
$results = $dao->select("col1,col2")->distinct()...
```

> Generates the query: select **distinct** col1,col2 ....

> Note: -&gt;distinct('unique') returns select **unique** ..

### from($tables)

[](#fromtables)

Generates a from command.

```
$results = $dao->select("*")->from('table')...
```

> Generates the query: select \* **from table**

**$tables** could be a single table or a sql construction. For examp, the next command is valid:

```
$results = $dao->select("*")->from('table t1 inner join t2 on t1.c1=t2.c2')...
```

### where($where,\[$arrayParameters=array()\])

[](#wherewherearrayparametersarray)

Generates a where command.

- $where is an array or a string. If it's a string, then it's evaluated by using the parameters. if any

```
$results = $dao->select("*")
->from('table')
->where('p1=1')...
```

> Generates the query: select \* **from table** where p1=1

> Note: ArrayParameters is an array as follow: **type,value.**
> Where type is i=integer, d=double, s=string or b=blob. In case of doubt, use "s"
> Example of arrayParameters:
> \['i',1 ,'s','hello' ,'d',20.3 ,'s','world'\]

```
$results = $dao->select("*")
->from('table')
->where('p1=?',['i',1])...
```

> Generates the query: select \* from table **where p1=?(1)**

```
$results = $dao->select("*")
->from('table')
->where('p1=? and p2=?',['i',1,'s','hello'])...
```

> Generates the query: select \* from table **where p1=?(1) and p2=?('hello')**

> Note. where could be nested.

```
$results = $dao->select("*")
->from('table')
->where('p1=?',['i',1])
->where('p2=?',['s','hello'])...
```

> Generates the query: select \* from table **where p1=?(1) and p2=?('hello')**

You could also use:

```
$results = $dao->select("*")->from("table")
    ->where(['p1'=>'Coca-Cola','p2'=>1])
    ->toList();
```

> Generates the query: select \* from table **where p1=?(Coca-Cola) and p2=?(1)**

### order($order)

[](#orderorder)

Generates a order command.

```
$results = $dao->select("*")
->from('table')
->order('p1 desc')...
```

> Generates the query: select \* from table **order by p1 desc**

### group($group)

[](#groupgroup)

Generates a group command.

```
$results = $dao->select("*")
->from('table')
->group('p1')...
```

> Generates the query: select \* from table **group by p1**

### having($having,\[$arrayParameters\])

[](#havinghavingarrayparameters)

Generates a group command.

```
$results = $dao->select("*")
->from('table')
->group('p1')
->having('p1>?',array('i',1))...
```

> Generates the query: select \* from table group by p1 having p1&gt;?(1)

> Note: Having could be nested having()-&gt;having()
> Note: Having could be without parameters having('col&gt;10')

### runGen($returnArray=true)

[](#rungenreturnarraytrue)

Run the query generate.

> Note if returnArray is true then it returns an associative array. if returnArray is false then it returns a mysqli\_result
> Note: It resets the current parameters (such as current select, from, where,etc.)

### toList()

[](#tolist)

It's a macro of runGen. It returns an associative array or null.

```
$results = $dao->select("*")
->from('table')
->toList()
```

### toResult()

[](#toresult)

It's a macro of runGen. It returns a mysqli\_result or null.

```
$results = $dao->select("*")
->from('table')
->toResult()
```

### first()

[](#first)

It's a macro of runGen. It returns the first row (if any, if not, it returns false) as an associative array.

```
$results = $dao->select("*")
->from('table')
->first()
```

### last()

[](#last)

It's a macro of runGen. It returns the last row (if any, if not, it returns false) as an associative array.

```
$results = $dao->select("*")
->from('table')
->last()
```

> Sometimes is more efficient to run order() and first() because last() reads all values.

### sqlGen()

[](#sqlgen)

It returns the sql command.

```
$sql = $dao->select("*")
->from('table')
->sqlGen();
echo $sql; // returns select * from table
$results=$dao->toList(); // executes the query
```

> Note: it doesn't reset the query.

Query Builder (DML), i.e. insert, update,delete
-----------------------------------------------

[](#query-builder-dml-ie-insert-updatedelete)

There are four ways to execute each command.

Let's say that we want to add an **integer** in the column **col1** with the value **20**

**Schema and values using a list of values**: Where the first value is the column, the second is the type of value (i=integer,d=double,s=string,b=blob) and second array contains the values.

```
$dao->insert("table"
    ,['col1','i']
    ,[20]);
```

**Schema and values in the same list**: Where the first value is the column, the second is the type of value (i=integer,d=double,s=string,b=blob) and the third is the value.

```
$dao->insert("table"
    ,['col1','i',20]);
```

**Schema and values using two associative arrays**:

```
$dao->insert("table"
    ,['col1'=>'i']
    ,['col1'=>20]);
```

**Schema and values using a single associative array**: The type is calculated automatically.

```
$dao->insert("table"
    ,['col1'=>20]);
```

### insert($table,$schema,\[$values\])

[](#inserttableschemavalues)

Generates a insert command.

```
$dao->insert("producttype"
    ,['idproducttype','i','name','s','type','i']
    ,[1,'cocacola',1]);
```

Using nested chain (single array)

```
    $dao->from("producttype")
        ->set(['idproducttype','i',0 ,'name','s','Pepsi' ,'type','i',1])
        ->insert();
```

Using nested chain multiple set

```
    $dao->from("producttype")
        ->set("idproducttype=?",['i',101])
        ->set('name=?',['s','Pepsi'])
        ->set('type=?',['i',1])
        ->insert();
```

or (the type is defined, in the possible, automatically by MySql)

```
    $dao->from("producttype")
        ->set("idproducttype=?",['i',101])
        ->set('name=?','Pepsi')
        ->set('type=?',1)
        ->insert();
```

Using nested chain declarative set

```
    $dao->from("producttype")
        ->set('(idproducttype,name,type) values (?,?,?)',['i',100,'s','Pepsi','i',1])
        ->insert();
```

> Generates the query: **insert into productype(idproducttype,name,type) values(?,?,?)** ....

### update($$table,$schema,$values,\[$schemaWhere\],\[$valuesWhere\])

[](#updatetableschemavaluesschemawherevalueswhere)

Generates a insert command.

```
$dao->update("producttype"
    ,['name','s','type','i'] //set
    ,[6,'Captain-Crunch',2] //set
    ,['idproducttype','i'] // where
    ,[6]); // where
```

```
$dao->update("producttype"
    ,['name'=>'Captain-Crunch','type'=>2] // set
    ,['idproducttype'=>6]); // where
```

```
$dao->from("producttype")
    ->set("name=?",['s','Captain-Crunch']) //set
    ->set("type=?",['i',6]) //set
    ->where('idproducttype=?',['i',6]) // where
    ->update(); // update
```

or

```
$dao->from("producttype")
    ->set("name=?",'Captain-Crunch') //set
    ->set("type=?",6) //set
    ->where('idproducttype=?',['i',6]) // where
    ->update(); // update
```

> Generates the query: **update producttype set `name`=?,`type`=? where `idproducttype`=?** ....

### delete(\[$table\],\[$schemaWhere\],\[$valuesWhere\])

[](#deletetableschemawherevalueswhere)

Generates a delete command.

```
$dao->delete("producttype"
    ,['idproducttype','i'] // where
    ,[7]); // where
```

```
$dao->delete("producttype"
    ,['idproducttype'=>7]); // where
```

> Generates the query: **delete from producttype where `idproducttype`=?** ....

You could also delete via a DQL builder chain.

```
$dao->from("producttype")
    ->where('idproducttype=?',['i',7]) // where
    ->delete();
```

```
$dao->from("producttype")
    ->where(['idproducttype'=>7]) // where
    ->delete();
```

> Generates the query: **delete from producttype where `idproducttype`=?** ....

Sequence
--------

[](#sequence)

Sequence is an alternative to AUTO\_NUMERIC field. It uses a table to generate an unique ID.
The sequence used is based on Twitter's Snowflake and it is generated based on time (with microseconds), Node Id and a sequence. This generates a LONG (int 64) value that it's unique

### Creating a sequence

[](#creating-a-sequence)

- **$dao-&gt;nodeId** set the node value (default is 1). If we want unique values amongst different clusters, then we could set the value of the node as unique. The limit is up to 1024 nodes.
- **$dao-&gt;tableSequence** it sets the table (and function), the default value is snowflake.

```
$dao->nodeId=1; // optional
$dao->tableSequence='snowflake'; // optional
$dao->createSequence(); // it creates a table called snowflake and a function called next_snowflake()

```

### Using the sequence

[](#using-the-sequence)

- **$dao-&gt;getSequence(\[unpredictable=false\])** returns the last sequence. If the sequence fails to generate, then it returns -1. The function could fails if the function is called more than 4096 times every 1/1000th second.

```
$dao->getSequence() // string(19) "3639032938181434317"

```

```
$dao->getSequence(true) // returns a sequence by flipping some values.

```

### Creating a sequence without a table.

[](#creating-a-sequence-without-a-table)

- **$dao-&gt;getSequencePHP(\[unpredictable=false\])** Returns a sequence without using a table. This sequence is more efficient than $dao-&gt;getSequence but it uses a random value to deals with collisions.
- If upredictable is true then it returns an unpredictable number (it flips some digits)

```
$dao->getSequencePHP() // string(19) "3639032938181434317"

```

```
$dao->getSequencePHP(true) // string(19) "1739032938181434311"

```

Changelist
----------

[](#changelist)

- 3.30 2020-02-13 Some cleanup.
- 3.28 2019-05-04 Added comments. Also -&gt;select() allows an entire query.
- 3.27 2019-04-21 Added new methods of encryption SIMPLE (short encryption) and INTEGER (it converts and returns an integer)
- 3.26 2019-03-06 Now Encryption has it's own class.
- 3.25 2019-03-06 Added getSequencePHP(), getUnpredictable() and getUnpredictableInv()
- 3.24 2019-02-06 Added a new format of date
- 3.22 2018-12-30 Added sequence
- 3.21 2018-12-17 Fixed a bug with parameters, set() and insert(). There are several ways to do an insertar. Now NULL is self:null
- 3.20 2018-12-15 Fixed bug with parameters and insert().
- 3.19 2018-12-09 Now null parameters are considered null. We use instead PHP\_INT\_MAX to indicate when the value is not set.
- 3.18 2018-12-07 Changed minimum stability.
- 3.17 2018-12-01 set() now allows a single value for the second argument.
- 3.16 2018-11-03 Added test unit and travis CI.
- 3.15 2018-10-27
- - Now it allows multiple select()
- - function generateSqlFields()
- 3.14 2018-10-16
- - Added field throwOnError.
- - Added more control on the error.
- - Now methods fails if the database is not open.
- - Added a container to messages (optional). It works with the function messages()
- - Added field isOpen
- - Added method storeInfo()
- 3.13 2018-10-05 Changed command eval to bind\_param( ...)
- 3.12 2018-09-29 Fixed a bug with insert() it now returns the last identity.
- 3.11 2018-09-27 Cleaned the code. If it throws an exception, then the chain is reset.
- 3.9 2018-09-24 Some fixes
- 3.7 Added charset.
- 3.6 More fixes.
- 3.5 Small fixed.
- 3.4 DML new features. It allows nested operations
    - -&gt;from()-&gt;where()-&gt;delete()
    - -&gt;from()-&gt;set()-&gt;where()-&gt;update()
    - -&gt;from()-&gt;set()-&gt;insert()
- 3.3 DML modified. It allows a different kind of parameters.
- 3.2 Insert, Update,Delete
- 3.0 Major overhaul. It adds Query Builder features.
- 2.6.4 Better correction of error.
- 2.6.3 Fixed transaction. Now a nested transaction is not nested (and returns a false).
- 2.6 first public version

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 97.3% 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 ~22 days

Recently: every ~86 days

Total

29

Last Release

2329d ago

Major Versions

2.6.4 → 3.02018-09-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bf6ba9d7f6f6c3ecde2779a29e1a4948f0f338c074ddceb3fbeb79c6dd1e68c?d=identicon)[JorgeCastro](/maintainers/JorgeCastro)

---

Top Contributors

[![jorgecc](https://avatars.githubusercontent.com/u/9570242?v=4)](https://github.com/jorgecc "jorgecc (72 commits)")[![colshrapnel](https://avatars.githubusercontent.com/u/2895470?v=4)](https://github.com/colshrapnel "colshrapnel (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

daophp-libraryphp7php71php72phpmysqlidao

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eftec-daoone/health.svg)

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

###  Alternatives

[stefangabos/zebra_database

An advanced, compact and lightweight MySQL database wrapper library, built around PHP's MySQLi extension.

11712.4k](/packages/stefangabos-zebra-database)[voku/simple-mysqli

Simple MySQLi library

4548.1k4](/packages/voku-simple-mysqli)

PHPackages © 2026

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