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

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

swew/db
=======

A lightweight, fast, and secure PHP library for interacting with databases, creating migrations, and running queries. swew/db uses prepared statements to protect against SQL injection attacks and supports multiple database systems.

v2.1.3(1y ago)326MITPHPPHP &gt;=8.2

Since Oct 19Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (20)Used By (0)

SWEW/db
=======

[](#swewdb)

Simplest Migration and SqlModel tool

The **swew/db** library is a lightweight and fast PHP library that provides an easy-to-use interface for creating and executing database migrations, as well as interacting with the database through queries. It's designed to protect against SQL injection attacks by using parameter binding and other security measures.

PHP - should be light and fast!!!

---

Packages developed by SWEW
==========================

[](#packages-developed-by-swew)

> - [swew/cli](https://packagist.org/packages/swew/cli) - A command-line interface program with formatting and text entry functions.
> - [swew/test](https://packagist.org/packages/swew/test) - A test framework that is designed to fix the fatal flaw of other test frameworks.
> - [swew/db](https://packagist.org/packages/swew/db) - A lightweight, fast, and secure PHP library for interacting with databases, creating migrations, and running queries.
> - [swew/dd](https://packagist.org/packages/swew/dd) - The simplest way to debug variables. As in Laravel.

---

Install
=======

[](#install)

```
composer require swew/db
```

```
