pipe/sql

Blazingly fast php sql util

v0.1.0 2022-10-23 07:16 UTC

This package is auto-updated.

Last update: 2024-12-23 12:04:44 UTC


README

Simple, purephp blazinglyfast Database helper(?)

Latest Stable Version Total Downloads License

Installation

composer require pipe/sql

Usage

Instantiate the class directly, or find a way to Singletonize it in your project.

$db = (new Pipe\SQL())->connect($host, $user, $pass, $name);
$db->raw("SELECT * FROM users")->all();

Philosophy

  1. Small is Beautiful.
    • Do one thing,
    • Do one thing well.
  2. Get the PoC out ASAP.
    • Consider your code dead two weeks after inception.
  3. n'joy!

sounds familiar? It should!