PHPackages                             vaibhavpandeyvpz/databoss - 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. vaibhavpandeyvpz/databoss

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

vaibhavpandeyvpz/databoss
=========================

Simple abstraction for MySQL/MariaDB, PostgreSQL and SQLite database server(s), compatible with PHP &gt;= 8.2.

2.1.0(4mo ago)11504MITPHPPHP ^8.2CI passing

Since Jan 29Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/vaibhavpandeyvpz/databoss)[ Packagist](https://packagist.org/packages/vaibhavpandeyvpz/databoss)[ Docs](https://github.com/vaibhavpandeyvpz/databoss)[ RSS](/packages/vaibhavpandeyvpz-databoss/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (5)Used By (4)

vaibhavpandeyvpz/databoss
=========================

[](#vaibhavpandeyvpzdataboss)

[![Latest Version](https://camo.githubusercontent.com/95828f46bbaaff155c3c24e2c3e61c09046fa92ff0cf622b74e975d3d8bb1b7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7661696268617670616e64657976707a2f64617461626f73732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/databoss)[![Downloads](https://camo.githubusercontent.com/f7111c253d88b181384e868f6104b7d60a33538e428646f26e078305a44df467/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7661696268617670616e64657976707a2f64617461626f73732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/databoss)[![PHP Version](https://camo.githubusercontent.com/d0b94e0ae8c138f35e5819ba64a002c28bcc24511f803445387512e28ab87f6c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7661696268617670616e64657976707a2f64617461626f73732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/databoss)[![License](https://camo.githubusercontent.com/db4d621808ac26824a38354c3f81edd7c9ff9bbef0c12a69ec661193f1ba9267/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7661696268617670616e64657976707a2f64617461626f73732e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/057af0a421d905d38620a4fa89266dc5b97f80448a9c2735f1334e6ac90a805b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7661696268617670616e64657976707a2f64617461626f73732f74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/vaibhavpandeyvpz/databoss/actions)

A simple, elegant database abstraction layer for [MySQL](https://www.mysql.com/)/[MariaDB](https://mariadb.org/), [PostgreSQL](https://www.postgresql.org/), [SQLite](https://www.sqlite.org/), and [Microsoft SQL Server](https://www.microsoft.com/sql-server) databases. Built with PHP 8.2+ features, providing a fluent API for common database operations without the complexity of full ORMs.

Features
--------

[](#features)

- **Multi-database support**: MySQL/MariaDB, PostgreSQL, SQLite, and Microsoft SQL Server
- **Simple API**: Intuitive methods for CRUD operations
- **Advanced filtering**: Powerful filter syntax with support for operators, nested conditions, and array values
- **Type-safe**: Full PHP 8.2+ type declarations throughout
- **Modern PHP**: Built with enums, match expressions, readonly properties, and more
- **Transaction support**: Built-in batch transaction handling with automatic rollback
- **Aggregation functions**: Built-in support for COUNT, SUM, AVG, MIN, MAX
- **SQL injection protection**: Automatic escaping and prepared statements
- **Table prefixing**: Support for table name prefixes
- **Column/table aliasing**: Flexible column and table aliasing support

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

[](#requirements)

- PHP &gt;= 8.2
- PDO extension
- One of: `ext-pdo_mysql`, `ext-pdo_pgsql`, `ext-pdo_sqlite`, or `ext-pdo_sqlsrv` (depending on your database)

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

[](#installation)

```
composer require vaibhavpandeyvpz/databoss
```

Quick Start
-----------

[](#quick-start)

### Basic Connection

[](#basic-connection)

```
