PHPackages                             anunes/andb - 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. anunes/andb

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

anunes/andb
===========

A simple and secure PDO wrapper library for PHP with support for multiple database drivers

00PHP

Since Oct 27Pushed 6mo agoCompare

[ Source](https://github.com/anunes/AnDB)[ Packagist](https://packagist.org/packages/anunes/andb)[ RSS](/packages/anunes-andb/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AnDb - Simple PDO Database Wrapper
==================================

[](#andb---simple-pdo-database-wrapper)

[![PHP Version](https://camo.githubusercontent.com/f32695bd6f65b12545162e869707d33dac6bcb5f6e5dc0d48b6d1f8162b6c247/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e302d626c75652e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

AnDb is a lightweight, secure, and easy-to-use PDO wrapper for PHP that provides a simple interface for database operations while maintaining security through prepared statements.

Features
--------

[](#features)

- 🔒 **Secure**: Built-in SQL injection protection with prepared statements
- 🚀 **Simple**: Clean, intuitive API for common database operations
- 🗃️ **Multi-database**: Supports MySQL, SQLite, PostgreSQL, SQL Server, and more
- 🔧 **Flexible**: Easy configuration with sensible defaults
- 📦 **Lightweight**: No external dependencies except PDO
- 🔄 **Transactions**: Full transaction support with rollback capabilities
- 🏗️ **Modern PHP**: Requires PHP 8.0+ with full type declarations

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

[](#installation)

Install AnDb using Composer:

```
composer require anunes/andb
```

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

[](#quick-start)

### Basic Usage

[](#basic-usage)

```
