PHPackages                             sundflux/libvaloa-db - 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. sundflux/libvaloa-db

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

sundflux/libvaloa-db
====================

Database component for Libvaloa.

3.0.14(6y ago)091MITPHPPHP &gt;=7.2.19

Since Apr 13Pushed 6y agoCompare

[ Source](https://github.com/sundflux/libvaloa-db)[ Packagist](https://packagist.org/packages/sundflux/libvaloa-db)[ Docs](http://github.com/sundflux/libvaloa-db)[ RSS](/packages/sundflux-libvaloa-db/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (15)Used By (0)

libvaloa - database component
=============================

[](#libvaloa---database-component)

[![webvaloa](https://github.com/sundflux/libvaloa/raw/master/.vendor.png)](https://github.com/sundflux/libvaloa/blob/master/.vendor.png)

Libvaloa is a set of standalone open source utility libraries, which make base for Webvaloa platform.

Libvaloa components aim for top-tier code quality, security and modern design patterns.

All Libvaloa components are licensed with permissive MIT license.

This package adds minimal abstraction layer for PDO connections.

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

[](#installation)

Install the latest version with `composer require sundflux/libvaloa-db`

or include libvaloa in your composer.json

```
{
    "require": {
        "sundflux/libvaloa-db": "^3.0.0"
    }
}
```

Requirements
------------

[](#requirements)

- PHP 7.2.19

Features
--------

[](#features)

- Chainable value setters
- Resultsets as objects
- Generate table models from yaml configs

Copyright and license
---------------------

[](#copyright-and-license)

Copyright (C) 2019 Tarmo Alexander Sundström &amp; contributors.

Libvaloa is licensed under the MIT License - see the LICENSE file for details.

Contact
-------

[](#contact)

-
-

Change Log
----------

[](#change-log)

All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org/).

Changes are grouped by added, fixed or changed feature.

### \[3.0.14\] - 2019-09-15

[](#3014---2019-09-15)

- Add Constraints::getReferences.

### \[3.0.13\] - 2019-09-14

[](#3013---2019-09-14)

- Remove some debugging.

### \[3.0.12\] - 2019-09-12

[](#3012---2019-09-12)

- Change default ON DELETE to RESTRICT.
- Add setter for primaryKey.

### \[3.0.11\] - 2019-09-12

[](#3011---2019-09-12)

- Add Db\\Constraints for generating foreign keys automatically. Works when primary keys are named "id" and referenced columns like "tablename\_id".

### \[3.0.10\] - 2019-09-11

[](#3010---2019-09-11)

- Oops, hotfix.

### \[3.0.9\] - 2019-09-11

[](#309---2019-09-11)

- Separate Db\\Column from Db\\Item.

### \[3.0.8\] - 2019-09-08

[](#308---2019-09-08)

- Adds better debugging for Exception cases so Whoops error page gets some useful information.

### \[3.0.7\] - 2019-09-06

[](#307---2019-09-06)

- Fix setter in \\Item.

### \[3.0.6\] - 2019-09-05

[](#306---2019-09-05)

- Fix exception throwing in ResultSet.
- Debug print out failed prepared query.

### \[3.0.5\] - 2019-09-01

[](#305---2019-09-01)

- Versioning fixes.

### \[3.0.4\] - 2019-09-01

[](#304---2019-09-01)

- Hotfix, fix queryCount capitalization.

### \[3.0.3\] - 2019-09-01

[](#303---2019-09-01)

- Small cleanups, doctag updates.
- Add \\Model\\Table for generating table schemas from yaml configs.
- Remove generate\_documentation.sh (helper script for phpdoc)

### \[3.0.2\] - 2019-05-25

[](#302---2019-05-25)

- Code and documentation cleanups.

### \[3.0.1\] - 2019-05-13

[](#301---2019-05-13)

- Fix missing exception include in ResultSet.

### \[3.0.0\] - 2019-04-13

[](#300---2019-04-13)

- Bumped version requirement to PHP 7.2
- First version separated from Libvaloa. See Libvaloa changelog for earlier changes.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Recently: every ~1 days

Total

14

Last Release

2428d ago

PHP version history (2 changes)v3.0.0PHP &gt;=7.2.0

3.0.3PHP &gt;=7.2.19

### Community

Maintainers

![](https://www.gravatar.com/avatar/75f88c88fcff0cc752dd0e5f1a0e39ee09c47317fabf6ea349c589018ee0d1de?d=identicon)[sundflux](/maintainers/sundflux)

---

Top Contributors

[![sundflux](https://avatars.githubusercontent.com/u/6561057?v=4)](https://github.com/sundflux "sundflux (26 commits)")

---

Tags

databasepdodblibvaloawebvaloa

### Embed Badge

![Health badge](/badges/sundflux-libvaloa-db/health.svg)

```
[![Health](https://phpackages.com/badges/sundflux-libvaloa-db/health.svg)](https://phpackages.com/packages/sundflux-libvaloa-db)
```

###  Alternatives

[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[envms/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

925511.7k13](/packages/envms-fluentpdo)[lichtner/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

921274.8k6](/packages/lichtner-fluentpdo)[fpdo/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

921244.9k7](/packages/fpdo-fluentpdo)[atlas/query

Object-oriented query builders and performers for MySQL, Postgres, SQLite, and SQLServer.

41249.0k6](/packages/atlas-query)[aura/sqlschema

Provides facilities to read table names and table columns from a database using PDO.

41234.1k4](/packages/aura-sqlschema)

PHPackages © 2026

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