Download the PHP package shivanraptor/php-db-manager without Composer
On this page you can find all versions of the php package shivanraptor/php-db-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download shivanraptor/php-db-manager
More information about shivanraptor/php-db-manager
Files in shivanraptor/php-db-manager
Download shivanraptor/php-db-manager
More information about shivanraptor/php-db-manager
Files in shivanraptor/php-db-manager
Vendor shivanraptor
Package php-db-manager
Short Description Easy-to-use PHP wrapper for MySQL database
License MIT
Homepage https://github.com/shivanraptor/PHP-DB-Manager
Package php-db-manager
Short Description Easy-to-use PHP wrapper for MySQL database
License MIT
Homepage https://github.com/shivanraptor/PHP-DB-Manager
Please rate this library. Is it a good library?
Informations about the package php-db-manager
PHP-DB-Manager
A modern PHP database wrapper for MySQL with prepared statements, connection pooling, and proper error handling.
Features
- UTF-8/UTF8MB4 Connection Support
- Prepared Statements by Default
- Transaction Support
- Connection Pooling
- Automatic Retry Mechanism
- Proper Exception Handling
- Type Safety
- PSR-4 Autoloading
- Modern PHP 7.4+ Features
Requirements
- PHP 7.4 or higher
- MySQL 5.7+ or MariaDB 10.3+
- PHP MySQLi extension
Installation
Using Composer
Manual Installation
- Download the latest release
- Include the autoloader in your project:
Quick Start
Connection Options
Option | Type | Default | Description |
---|---|---|---|
host | string | 'localhost' | Database host |
username | string | - | Database username |
password | string | - | Database password |
database | string | - | Database name |
charset | string | 'utf8mb4' | Connection charset |
port | int | 3306 | Database port |
persistent | bool | false | Use persistent connection |
autocommit | bool | true | Enable autocommit |
timeout | int | 30 | Connection timeout in seconds |
retry_attempts | int | 3 | Number of connection retry attempts |
retry_delay | int | 100 | Delay between retries in milliseconds |
Usage Examples
Basic Queries
Transactions
Fetching Results
Connection Info
Breaking Changes from v1.x
-
Constructor Changes:
-
Namespace Required:
-
Error Handling:
- Query Execution:
Contributing
- Fork the repository
- Create your feature branch
- Run tests and code style checks
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For support, please open an issue in the GitHub repository or contact the maintainers.
All versions of php-db-manager with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package shivanraptor/php-db-manager contains the following files
Loading the files please wait ....