Download the PHP package kynetcode/wpzylos-model without Composer
On this page you can find all versions of the php package kynetcode/wpzylos-model. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kynetcode/wpzylos-model
More information about kynetcode/wpzylos-model
Files in kynetcode/wpzylos-model
Download kynetcode/wpzylos-model
More information about kynetcode/wpzylos-model
Files in kynetcode/wpzylos-model
Vendor kynetcode
Package wpzylos-model
Short Description Lightweight ORM/Model layer for WPZylos Framework
License GPL-2.0-or-later
Homepage https://github.com/KYNetCode/wpzylos-model
Package wpzylos-model
Short Description Lightweight ORM/Model layer for WPZylos Framework
License GPL-2.0-or-later
Homepage https://github.com/KYNetCode/wpzylos-model
Please rate this library. Is it a good library?
Informations about the package wpzylos-model
WPZylos Model
Lightweight ORM/Model layer for the WPZylos Framework — an elegant Active Record implementation built on top of WordPress's $wpdb, giving you the expressive model syntax you love without the overhead.
✨ Features
- 🏗️ Active Record Pattern — Intuitive model classes that map to database tables
- 🔄 Attribute Casting — Automatic type casting for
int,float,bool,string,array,json,datetime - 🔧 Accessors & Mutators — Custom
getXxxAttribute/setXxxAttributemethods - 🔗 Relationships —
hasOne,hasMany,belongsTowith lazy loading and caching - 🗑️ Soft Deletes — Trash records instead of permanently deleting them
- ⏱️ Timestamps — Automatic
created_at/updated_atmanagement - 📡 Model Events — Lifecycle hooks: creating, created, updating, updated, deleting, deleted
- 🔍 Query Scopes — Reusable local scopes with
scopeXxx()convention - 📦 ModelCollection — Rich collection wrapper with
pluck,map,filter,each,contains - 🛡️ Mass Assignment Protection —
$fillableand$guardedfor security - 📋 JSON Serialization —
toArray(),toJson()with$hiddenattribute support
📋 Requirements
| Requirement | Version |
|---|---|
| PHP | >= 8.0 |
| WordPress | >= 6.0 |
| wpzylos-core | ^1.0 |
| wpzylos-database | ^1.0 |
📦 Installation
🚀 Quick Start
Define a Model
Basic CRUD Operations
Query with Scopes
🔧 Core Features
Attribute Casting
Accessors & Mutators
Relationships
Soft Deletes
Model Events
ModelCollection
Service Provider Registration
📦 Related Packages
| Package | Description |
|---|---|
| wpzylos-core | Application foundation and container |
| wpzylos-database | Query builder and database connection |
| wpzylos-migrations | Database schema management |
📖 Documentation
Full documentation is available at: https://wpzylos.com/docs/latest/packages/wpzylos-model
💬 Support
- 🐛 Bug Reports: GitHub Issues
- 💡 Feature Requests: GitHub Issues
- 📖 Documentation: wpzylos.com
Support the Project
📄 License
This package is open-sourced software licensed under the MIT License.
🤝 Contributing
Please see CONTRIBUTING.md for details.
Made with ❤️ by KYNetCode
All versions of wpzylos-model with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
kynetcode/wpzylos-core Version ^1.0
kynetcode/wpzylos-database Version ^1.0
kynetcode/wpzylos-core Version ^1.0
kynetcode/wpzylos-database Version ^1.0
The package kynetcode/wpzylos-model contains the following files
Loading the files please wait ...