PHPackages                             webservis/basicdb - 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. webservis/basicdb

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

webservis/basicdb
=================

Example project using the basicdb package

2.2.1(1mo ago)063GPL-3.0PHPPHP &gt;=8.2

Since Feb 20Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Sanan-84/basicdb)[ Packagist](https://packagist.org/packages/webservis/basicdb)[ RSS](/packages/webservis-basicdb/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

BasicDB
=======

[](#basicdb)

A simple PHP database class for easy interaction with MySQL databases.

Purpose
-------

[](#purpose)

BasicDB is designed to provide a straightforward and convenient way to interact with MySQL databases using PHP. It aims to simplify database operations and make them more accessible for developers.

Features
--------

[](#features)

- **Easy Integration**: Simple and easy-to-use methods for common database operations.
- **Query Building**: Supports building complex SQL queries with ease.
- **Pagination**: Built-in pagination support for handling large result sets.
- **Debugging**: Debug mode for viewing generated SQL queries.

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

[](#installation)

To get started, follow these steps:

1. Clone the project: `git clone https://github.com/Sanan-84/basicdb.git`
2. Navigate to the project directory: `cd basicdb`
3. Install the required dependencies: `composer install`
4. Edit configuration files.

Usage
-----

[](#usage)

Here's an example of how to use BasicDB:

```
// Example usage code
require_once __DIR__ . '/vendor/autoload.php';

use Webservis\Database;

// Initialize the database connection
$db = new Database('localhost', 'your_db_name', 'your_username', 'your_password');

// Usage examples...

// ...
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance90

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

5

Last Release

51d ago

Major Versions

1.2.0 → 2.2.12026-03-28

PHP version history (2 changes)1.2.0PHP &gt;=7.4

2.2.1PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d73f741878023ae55ac56d8b5a82f04d90df921618c8f603dbd76f1ec524768?d=identicon)[Sanan-84](/maintainers/Sanan-84)

---

Top Contributors

[![Sanan-84](https://avatars.githubusercontent.com/u/13895888?v=4)](https://github.com/Sanan-84 "Sanan-84 (40 commits)")

---

Tags

mysqlsqlpdo

### Embed Badge

![Health badge](/badges/webservis-basicdb/health.svg)

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

###  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)[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k5.5M69](/packages/ifsnop-mysqldump-php)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k22.9k](/packages/clouddueling-mysqldump-php)[ezsql/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

86946.7k](/packages/ezsql-ezsql)[jv2222/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

87311.3k2](/packages/jv2222-ezsql)

PHPackages © 2026

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