carminemm / query-craft
ORM based on Data Mapper pattern, able to connect to MySQL and Postgres
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/carminemm/query-craft
Requires
- php: ^8.3
- carminemm/units-conversion: ^1.2.1
This package is auto-updated.
Last update: 2025-09-19 13:14:50 UTC
README
Query Craft is an ORM, ETL and Migrations based on Data Mapper pattern, able to connect to MySQL, Postgres and SQL Server.
Installation
composer require carminemm/query-craft
Usage
use CarmineMM\QueryCraft\Facades\Connection; use CarmineMM\QueryCraft\Data\Model; Connection::connect(config: [ 'driver' => 'mysql', 'host' => '127.0.0.1', 'username' => 'root', 'password' => '', 'database' => '', 'options' => [], // PDO options ]); $model = new Model('star_client'); $model->setTable('products'); $data = $model->all();