This is a data abstraction layer for PHP, built using PHP. This library aims to be used as alternative of writing SQL. It adds an abstraction layer on top of SQL.
Example -
// Deleting a record in MYSQL
$sql = "DELETE from ".static::$table." WHERE id = ?";
$stmt = static::$pdo->prepare($sql);
$stmt->execute([$id]);
// Instead of this we can write
$user = Users::find('[email protected]');
$user->delete();This project is still in ALPHA stage.
- Mapping of Database Tables to Classes.
- Basic CRUD Operation
- Method Chaining ( Not yet )
| Statement | Status | Test Covergae |
|---|---|---|
| Table | Done | Full |
| Insert | Done | Medium |
| Update | Done | Medium |
| Read | Done | Medium |
| Delete | Done | Medium |
| Create | Not Yet | None |
| Alter | Not Yet | None |
| Drop | Not Yet | None |
| Grant | Not Yet | None |
| Revoke | Not Yet | None |
| Commit | Not Yet | None |
| Rollback | Not Yet | None |
| Savepoint | Not Yet | None |
I am building, testing and using it in latest XAMPP, so it only supports PHP 8.0.
Kushal Saha - [email protected] - LinkedIN
KDAL is licensed under the MIT License - see the LICENSE file for details