Mysqli Abstraction Layer v1.9.0
Mysqli2 is an enhanced wrapper around PHP's native MySQLi extension that provides simplified prepared statement execution, better error handling, and development/production mode switching. The class extends mysqli, inheriting all native MySQLi methods while adding streamlined functionality.
Key Features
- Singleton Pattern: Single database connection instance
- Development/Production Modes: Configurable error reporting
- Simplified Prepared Statements: Streamlined syntax for common operations
- Smart Return Values: Context-aware return types based on SQL operation
- Exception Handling: Optional exception throwing with detailed error information
- Updated documentation.
- Added new methods for better handling of prepared statements and result sets.
- Improved error handling and logging.
- Ny refaktorert klasse, nye metoder. Se docs/mysqli2_documentation-v1.9.md
- Breaking file into smaller files, better readability.
- Updated readme.
- Bugfix, error_number has to be int
- buddy() updated, has prepared output aswell. echo $mysqli->buddy('table','insert','prepared');
- parse_col_type, added prepared for type
- Added mode for ->result('assoc') without using second parameter.
- Updated for PHP 8.1
To install the old deprecated library use composer:
composer require "steinhaug/mysqli":"~1.6."
// documentation:
docs/mysqli2-documentation-v1.6.md
To install the library use composer:
composer require "steinhaug/mysqli":"^1.9.0"
// documentation:
docs/mysqli2_documentation-v1.9.md
Dump autoloaders:
composer dump-autoload --optimize
This project is licensed under the terms of the MIT License. Enjoy!
Kim Steinhaug, steinhaug at gmail dot com.
Sosiale lenker: LinkedIn, SoundCloud, Instagram, Youtube, X, Ko-Fi, Github, Gitlab
Generative AI lenker: Udio, Suno, Huggingface
Resurser og hjelpesider: Linktr.ee/steinhaugai, Linktr.ee/stainhaug, pinterest/steinhaug, pinterest/stainhaug