Search by

silvaleal / rotyquery

silvaleal

roty-query provides a simple, fluent API to build SQL queries without writing raw SQL by hand.

Package info

github.com/silvaleal/roty-query

pkg:composer/silvaleal/rotyquery

Statistics

Installs: 63

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.2 2026-11-08 17:52 UTC

This package is auto-updated.

Last update: 2026-11-08 17:52:30 UTC


README

roty-query provides a simple, fluent API to build SQL queries without writing raw SQL by hand. It is part of RotyPHP, an ORM for PHP, and works as the query-building foundation behind it.

This project is under active development. The API may change between releases.

Requirements

Installation

composer require silvaleal/rotyquery

Usage

use RotyQuery\QueryBuilder;

require __DIR__ . '/vendor/autoload.php';

class User extends QueryBuilder
{
    protected string $table = 'user';
}

$query = new User();
$query->q_select();
$query->q_where('role', 'user');

echo $query->q_builder(); // SELECT * FROM user WHERE role = :role

Examples

More complete examples are available in the examples directory:

Documentation

Learn how to use RotyPHP by reading our documentation by clicking here.