Download the PHP package keenlysoft/database without Composer
On this page you can find all versions of the php package keenlysoft/database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download keenlysoft/database
More information about keenlysoft/database
Files in keenlysoft/database
Package database
Short Description Database and active record package for the Keenly lightweight PHP framework
License MIT
Homepage https://github.com/keenlysoft/database
Informations about the package database
Keenly Database
keenlysoft/database is the database and active record package for the Keenly lightweight PHP framework. It provides a small MySQL-oriented query layer, active record helpers, pagination, and an optional Redis wrapper.
Features
- Active record models for common create, read, update, and delete operations
- Prepared query helpers through
pwhere() - Transaction helpers
- Pagination support
- Optional Redis connection wrapper
- PHP 7.4 and PHP 8.x compatibility baseline
Requirements
- PHP 7.4 or later
- PDO and the PDO driver for your database
- The BCMath extension when using pagination
- The Redis extension when using the Redis wrapper
keenlysoft/keenlywhen using framework configuration integration
Installation
Install the package with Composer:
Applications created with keenlysoft/app include this package automatically.
Quick Start
Define an application model:
Find records:
Create, update, and delete records:
Use transactions:
Security Notes
Prefer prepared operations such as pwhere() when values originate from users or external systems. Methods that accept raw SQL fragments are intended for trusted application code only.
Store production database and Redis credentials outside version control. Review generated configuration before deployment.
Testing
Run the local smoke test:
The smoke test does not require a live database server. It verifies SQL generation and model array access behavior.
Roadmap
- Expand prepared-query coverage across the full active record API
- Add integration tests against a disposable MySQL service
- Review Redis extension compatibility and failure handling
- Add static analysis and coding-style checks
Contributing
Contributions are welcome. Please read SECURITY.md.
License
Keenly Database is released under the MIT License.