webservis / basicdb
Example project using the basicdb package
Installs: 38
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=7.4
This package is auto-updated.
Last update: 2025-04-18 06:11:34 UTC
README
A simple PHP database class for easy interaction with MySQL databases.
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
- 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
To get started, follow these steps:
- Clone the project:
git clone https://github.com/Sanan-84/basicdb.git
- Navigate to the project directory:
cd basicdb
- Install the required dependencies:
composer install
- Edit configuration files.
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... // ...