PHPackages                             hell-sh/smw - 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. hell-sh/smw

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

hell-sh/smw
===========

A simple and secure wrapper for interacting with MySQL servers.

v1.0.1(5y ago)065MITPHP

Since May 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/hell-sh/smw)[ Packagist](https://packagist.org/packages/hell-sh/smw)[ Docs](https://github.com/hell-sh/smw)[ RSS](/packages/hell-sh-smw/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

smw, the simple &amp; secure mysqli wrapper
===========================================

[](#smw-the-simple--secure-mysqli-wrapper)

A simple and secure wrapper for interacting with MySQL servers.

We've been using smw in our backend for years and neither tools nor experts managed to perform unwanted SQL commands.

Usage
-----

[](#usage)

If you're using [Composer](https://getcomposer.org), you can simply `composer require hell-sh/smw`

Further information can be found [here](https://github.com/hell-sh/smw/blob/master/example.php).

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 86.7% 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 ~656 days

Total

2

Last Release

1995d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/63328889?v=4)[Sainan](/maintainers/Sainan)[@Sainan](https://github.com/Sainan)

---

Top Contributors

[![timmyRS](https://avatars.githubusercontent.com/u/11009697?v=4)](https://github.com/timmyRS "timmyRS (13 commits)")[![Sainan](https://avatars.githubusercontent.com/u/63328889?v=4)](https://github.com/Sainan "Sainan (2 commits)")

---

Tags

mysqlsql

### Embed Badge

![Health badge](/badges/hell-sh-smw/health.svg)

```
[![Health](https://phpackages.com/badges/hell-sh-smw/health.svg)](https://phpackages.com/packages/hell-sh-smw)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k614.3M7.3k](/packages/doctrine-dbal)[catfan/medoo

The lightweight PHP database framework to accelerate development

4.9k1.6M211](/packages/catfan-medoo)[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k6.2M82](/packages/ifsnop-mysqldump-php)[greenlion/php-sql-parser

A pure PHP SQL (non validating) parser w/ focus on MySQL dialect of SQL

64312.6M107](/packages/greenlion-php-sql-parser)[cycle/orm

PHP DataMapper ORM and Data Modelling Engine

1.3k922.8k86](/packages/cycle-orm)[usmanhalalit/pixie

A lightweight, expressive, framework agnostic query builder for PHP.

6762.3M16](/packages/usmanhalalit-pixie)

PHPackages © 2026

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