carminemm/query-craft

ORM based on Data Mapper pattern, able to connect to MySQL and Postgres

v0.2.15 2025-06-17 15:00 UTC

This package is auto-updated.

Last update: 2025-06-17 15:13:54 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();

Documentación