2017 © Pedro Peláez
 

library simplesql

A php library that makes SQL simple

image

nytrix/simplesql

A php library that makes SQL simple

  • Sunday, July 22, 2018
  • by thomaskolmans
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SimpleSQL

A php library that makes SQL simpel. Build your applications much faster with simple and fast communication to your database., (*1)

Why?

SimpleSQL is a very lightweight library that will speed up your proccess of creating, selecting, updating and all your other SQL queries. It's a very easy syntax and has also multiple ways of doing your queries, there is a basic set of SQL functions that will work with the documented parameters, but then you can also build your own query through our building structure., (*2)

Installation

We recommend using composor to install our library. Look at how to install composor here, (*3)

composer require nytrix/simplesql

You can also download the library and install it manually. Download button will be added when the first official release is there., (*4)

Features

  • Common SQL queries in easy functions with understandable paramters.
  • SQL query builder, so you can make any query with just PHP functions
  • Database backup that you can pass it on in other connections
  • Multi-driver possibilities
  • Mutliple connections available, and easy to communicate between those.

Usage

Examples of SQL queries, simply in PHP., (*5)

Create instance
Create your SimpleSQL instance, this will be used in the examples below., (*6)

<?php
    use lib\SimpleSQL;
    $sql = new SimpleSQL; 
?>

Functions

Select, (*7)

$sql->select("table","column",array("where" => "equals"));

Update, (*8)

$sql->update("table","column",array("where" => "equals"),"to");

Insert, (*9)

$sql->insert("table",array("value1","value2","value3"));

Create, (*10)

$sql->create("table",array("id int auto_increment",name varchar(255)),"id");

Exists, (*11)

$sql->exists("table",array("where" => "equals"));

Full documentation you can find here, (*12)

License

SimpelSQL is under the MIT license, read it here, (*13)

The Versions

22/07 2018

dev-master

9999999-dev https://github.com/thomaskolmans/SimpleSQl

A php library that makes SQL simple

  Sources   Download

MIT

The Requires

  • php >=5.3,<8.0-DEV

 

constructor simplesql

22/07 2018

dev-feature/migration

dev-feature/migration https://github.com/thomaskolmans/SimpleSQl

A php library that makes SQL simple

  Sources   Download

MIT

The Requires

  • php >=5.3,<8.0-DEV

 

constructor simplesql

15/07 2018

dev-develop

dev-develop https://github.com/thomaskolmans/SimpleSQl

A php library that makes SQL simple

  Sources   Download

MIT

The Requires

  • php >=5.3,<8.0-DEV

 

constructor simplesql