PHPackages                             ratingthomas/sqlmanager - 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. ratingthomas/sqlmanager

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

ratingthomas/sqlmanager
=======================

A small script that lets you easily interact with your mysql database

2.0.1(1y ago)1105AGPL-3.0-or-laterPHPPHP &gt;=8.0.0

Since Sep 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Ratingthomas/sqlmanager)[ Packagist](https://packagist.org/packages/ratingthomas/sqlmanager)[ Docs](https://github.com/Ratingthomas/sqlmanager)[ RSS](/packages/ratingthomas-sqlmanager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)DependenciesVersions (3)Used By (0)

SQLManager
==========

[](#sqlmanager)

SQLManager is a small script that lets you easily interact with your mysql database.

Features
--------

[](#features)

- Easy to use
- Secure (SQL Injection prevention)
- Simple and fast

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

[](#installation)

1. Download the latest release with composer or from the [releases](https://github.com/Ratingthomas/sqlmanager/releases) page.

```
composer require ratingthomas/sqlmanager
```

3. Put the script somewhere in your project.
4. Add the following code:

```

```

How to use
----------

[](#how-to-use)

Here i will explain how you can use the script.

### Connect to Database

[](#connect-to-database)

```
$sql->connect("db_name", "db_username", "db_password", "db_name");
```

ParrameterDetailsExampledb\_hostThe database host.`localhost`db\_usernameUsername`root`db\_passwordPassword`admin`db\_nameThe name of the database`test`### Get data from the dabatase

[](#get-data-from-the-dabatase)

Example 1

```
$result = $sql->query("SELECT * FROM users WHERE userid = ? AND user_type = ?", ['1', 'superadmin'], true);
print_r($result);
```

Example 2

```
$result = $sql->query("SELECT * FROM users", []);
print_r($result);
```

ParrameterDetailsExampleTypeRequiredCan be emptyqueryThe sql query`SELECT * FROM test;`StringtrueFalseoptionsIf you have a where statement`[$param1, $param2]`Arraytruetruearray\_pushMake the array Multidimensional`true`booleanfalsetrueno\_resultSet this to true if the sql query has no return falue`true`booleanfalsetrue### Get the connection info.

[](#get-the-connection-info)

```
$sql->displayconnection()
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

2

Last Release

580d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80970c4a96f26e582745bd01ab8e825dc4e9cffe8995507785c6110bf91f91ae?d=identicon)[Ratingthomas](/maintainers/Ratingthomas)

---

Top Contributors

[![Ratingthomas](https://avatars.githubusercontent.com/u/92450283?v=4)](https://github.com/Ratingthomas "Ratingthomas (29 commits)")

---

Tags

databasedbmysqlphpsqlmysqlsql

### Embed Badge

![Health badge](/badges/ratingthomas-sqlmanager/health.svg)

```
[![Health](https://phpackages.com/badges/ratingthomas-sqlmanager/health.svg)](https://phpackages.com/packages/ratingthomas-sqlmanager)
```

###  Alternatives

[doctrine/dbal

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

9.7k578.4M5.6k](/packages/doctrine-dbal)[catfan/medoo

The lightweight PHP database framework to accelerate development

4.9k1.5M194](/packages/catfan-medoo)[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k5.5M69](/packages/ifsnop-mysqldump-php)[greenlion/php-sql-parser

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

63911.6M82](/packages/greenlion-php-sql-parser)[cycle/orm

PHP DataMapper ORM and Data Modelling Engine

1.3k835.4k65](/packages/cycle-orm)[usmanhalalit/pixie

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

6872.2M15](/packages/usmanhalalit-pixie)

PHPackages © 2026

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