PHPackages                             elephpant/light-query-builder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. elephpant/light-query-builder

ActiveLibrary[Database &amp; ORM](/categories/database)

elephpant/light-query-builder
=============================

Light Query Builder's a simple query builder made for simple applications, but it's powerful

1.1.15(2y ago)127MITPHPPHP ^8.0

Since Jan 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sergiodanilojr/light-query-builder)[ Packagist](https://packagist.org/packages/elephpant/light-query-builder)[ Docs](https://www.sergiodanilojr.com.br)[ RSS](/packages/elephpant-light-query-builder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (19)Used By (0)

Light Query Builder @ElePHPant
==============================

[](#light-query-builder-elephpant)

[![Maintainer](https://camo.githubusercontent.com/7b1d28a2036b608f54a554b494e6678bbe1d58bc90f33baeb9c8ae3af0590b57/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d4073657267696f64616e696c6f6a722d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/sergiodanilojr)[![Source Code](https://camo.githubusercontent.com/ae87a034968d31b653f4391b6e66e9582a286e67bfcafe1fa1e3f9708889c9ff/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d656c65706870616e742f6c696768742d71756572792d6275696c6465722d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/sergiodanilojr/light-query-builder)[![PHP from Packagist](https://camo.githubusercontent.com/b0c52042fa2ee203746941a88feeebc4be46b7e74ad03fb58401bb51fea34204/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f656c65706870616e742f6c696768742d71756572792d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elephpant/light-query-builder)[![Latest Version](https://camo.githubusercontent.com/c68287cf0ed4d961f97781ffb347a17b9bdbefe4556882e77216687fd285c1b4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f656c65706870616e742f6c696768742d71756572792d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://github.com/sergiodanilojr/light-query-builder/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/1cd4e7bae90e1a1e12df79bb173f2cae00ccfb623d982d9a8c74a2d0b77e35e7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f73657267696f64616e696c6f6a722f6c696768742d71756572792d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sergiodanilojr/light-query-builder)[![Quality Score](https://camo.githubusercontent.com/0d69061097ded70113630e516ec8fa56d2a8dfdafc723bf6b1333f4c64005e7e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73657267696f64616e696c6f6a722f6c696768742d71756572792d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sergiodanilojr/light-query-builder)[![Total Downloads](https://camo.githubusercontent.com/8970b844339db03344b453d82d293d7a3f34d8742228f189269df7c97f37c5b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c65706870616e742f6c696768742d71756572792d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elephpant/light-query-builder)

Firstly Light Query Builder's Awesome! And with it you can construct whatever you want in SQL.

Primeiramente Light Query Builder é Maravilhoso. E com ele você pode construir qualquer querye SQL que quiser.

###### NOTE: However Light Query Builderjust work currently with MySQL Driver, because a BETA Version. Soon it'll work with others drivers.

[](#note-however-light-query-builderjust-work-currently-with-mysql-driver-because-a-beta-version-soon-itll-work-with-others-drivers)

### Highlights

[](#highlights)

- Extremaly Easy
- reading, writing, updating and removing data from the Database
- Construct all your queries with this components
- Improve the funcionalities of this component extendin it
- It work with enviroment variables to set all settings of the database
- Composer ready and PSR-2 compliant (Pronto para o Composer e compatível com PSR-2)

###### BEFORE INSTALL!

[](#before-install)

For you work with this component, is important work with a component like `vlucas/dotenv` for you set your enviroment variables;

```
DB_DRIVER="mysql"
DB_PORT="3306"
DB_HOST="your_database_host"
DB_USER="root"
DB_PASSWORD="passworddb"
DB_NAME="elephpant"
```

Installation
------------

[](#installation)

Ligh Query Builder is available via Composer:

```
"elephpant/light-query-builder": "*"
```

or run

```
composer require elephpant/light-query-builder
```

Documentation
-------------

[](#documentation)

### Quick Start

[](#quick-start)

```
