PHPackages                             zguillez/z-database - 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. zguillez/z-database

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

zguillez/z-database
===================

PHP module for MySql database

v1.0.1(5y ago)03701MITPHP

Since Mar 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zguillez/z-database)[ Packagist](https://packagist.org/packages/zguillez/z-database)[ RSS](/packages/zguillez-z-database/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (6)Used By (1)

z-database
==========

[](#z-database)

[![License](https://camo.githubusercontent.com/e498eead712d82d9ee1af0a4850acd2e46ea48c48fb9ce5a3d2ab64f28f95b34/687474703a2f2f696d672e736869656c64732e696f2f3a6c6963656e73652d6d69742d626c75652e737667)](http://doge.mit-license.org)

PHP module for MySql databases

Getting Started
===============

[](#getting-started)

### Add package to composer.json

[](#add-package-to-composerjson)

`composer require zguillez/z-database`

```
//packaje.json
{
    "require": {
        "zguillez/z-database": "^1.0.0"
    }
}

```

Usage:
======

[](#usage)

```
require 'vendor/autoload.php';

$db = new Z\Database('***.***.***.***', 'user', '******', 'database');
$data = $db->sql2array('SELECT * FROM users');
$db->test($data);

```

Contributing and issues
=======================

[](#contributing-and-issues)

Contributors are welcome, please fork and send pull requests! If you have any ideas on how to make this project better then please submit an issue or send me an [email](mailto:mail@zguillez.io).

License
=======

[](#license)

©2020 Zguillez.io

Original code licensed under [MIT](https://en.wikipedia.org/wiki/MIT_License) Open Source projects used within this project retain their original licenses.

Changelog
=========

[](#changelog)

### v1.0.0 (Mar 10, 2020)

[](#v100-mar-10-2020)

- Initial implementation

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~62 days

Total

5

Last Release

2012d ago

Major Versions

v0.0.3 → v1.0.02020-03-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ae4906406c20dee4d4ea1cfe9245b7e416dd4a8d19f9963a195e38707dbd16a?d=identicon)[zguillez](/maintainers/zguillez)

---

Top Contributors

[![zguillez](https://avatars.githubusercontent.com/u/2631152?v=4)](https://github.com/zguillez "zguillez (8 commits)")

---

Tags

phpdatabasemysql

### Embed Badge

![Health badge](/badges/zguillez-z-database/health.svg)

```
[![Health](https://phpackages.com/badges/zguillez-z-database/health.svg)](https://phpackages.com/packages/zguillez-z-database)
```

###  Alternatives

[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k22.9k](/packages/clouddueling-mysqldump-php)[stefangabos/zebra_database

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

11812.0k](/packages/stefangabos-zebra-database)[popphp/pop-db

Pop Db Component for Pop PHP Framework

1814.6k11](/packages/popphp-pop-db)[riverside/php-orm

PHP ORM micro-library and query builder

111.2k](/packages/riverside-php-orm)

PHPackages © 2026

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