Download the PHP package kynetcode/wpzylos-database without Composer
On this page you can find all versions of the php package kynetcode/wpzylos-database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kynetcode/wpzylos-database
More information about kynetcode/wpzylos-database
Files in kynetcode/wpzylos-database
Download kynetcode/wpzylos-database
More information about kynetcode/wpzylos-database
Files in kynetcode/wpzylos-database
Vendor kynetcode
Package wpzylos-database
Short Description Safe wpdb wrapper with query builder for WPZylos framework
License GPL-2.0-or-later
Homepage https://github.com/KYNetCode/wpzylos-database
Package wpzylos-database
Short Description Safe wpdb wrapper with query builder for WPZylos framework
License GPL-2.0-or-later
Homepage https://github.com/KYNetCode/wpzylos-database
Please rate this library. Is it a good library?
Informations about the package wpzylos-database
WPZylos Database
Safe $wpdb wrapper with fluent query builder for the WPZylos framework.
📖 Full Documentation | 🐛 Report Issues
✨ Features
- Connection Class — Plugin-scoped
$wpdbwrapper with 21 public methods - Query Builder — Fluent chainable interface for SELECT, INSERT, UPDATE, DELETE
- Automatic Preparation — All queries use
$wpdb->prepare()internally - Plugin-Scoped Table Names — Automatic prefix handling via
ContextInterface - Transaction Support — Automatic and manual transaction management with rollback
- CRUD Convenience —
find(),insertGetId(), and direct table methods - Error Inspection —
hasError(),lastError(),rowsAffected() - Raw Query Access —
query(),getRow(),getResults(),getVar()
📋 Requirements
| Requirement | Version |
|---|---|
| PHP | ^8.0 |
| WordPress | 6.0+ |
🚀 Installation
⚙️ Service Provider Registration
Register DatabaseServiceProvider in your plugin's service providers:
This registers two singleton bindings:
| Binding | Resolves To |
|---|---|
Connection::class |
Connection instance |
'db' |
Same Connection instance |
📖 Quick Start
🏗️ Core Usage
Select Queries
Insert
Update
Delete
Find by Primary Key
Insert and Get ID
🔒 Transactions
Automatic (Recommended)
Manual
🔍 Raw Queries
All raw methods use $wpdb->prepare() when arguments are provided:
🛠️ Error Handling
📦 Related Packages
| Package | Description |
|---|---|
| wpzylos-core | Application foundation |
| wpzylos-migrations | Database migrations |
| wpzylos-scaffold | Plugin template |
📖 Documentation
- Usage Guide — Patterns, workflows, and examples
- API Reference — Complete class and method documentation
- Full Documentation — Online docs and tutorials
☕ Support the Project
📄 License
MIT License. See LICENSE for details.
🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
Made with ❤️ by KYNetCode
All versions of wpzylos-database with dependencies
PHP Build Version
Package Version
The package kynetcode/wpzylos-database contains the following files
Loading the files please wait ...