PHPackages                             virgiliopontes/autowheremysql - 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. virgiliopontes/autowheremysql

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

virgiliopontes/autowheremysql
=============================

With this package, it's easy to create visions where your users become more powerful. You give them the power to filter fields all fields in a query, without the need to create each field separately.

0.2.1(7y ago)024MITPHPPHP &gt;=5.4

Since Jun 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/virgiliopontes/autowheremysql)[ Packagist](https://packagist.org/packages/virgiliopontes/autowheremysql)[ Docs](https://github.com/virgiliopontes/autowheremysql)[ RSS](/packages/virgiliopontes-autowheremysql/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Auto Where MySQL for PHP
========================

[](#auto-where-mysql-for-php)

This package to create the where part of your MySQL queries from a simple form submission, and everything automatically.

Install
-------

[](#install)

```
composer require virgiliopontes/autowheremysql

```

Examples
--------

[](#examples)

### The *Hello World* example.

[](#the-hello-world-example)

Go to the examples directory in the root of the repository (`vendor/virgiliopontes/autowheremysql/examples`).

Open the `index.php` with your favorite text editor and take a look at the source code.

#### Open the browser

[](#open-the-browser)

Navigate to the directory where the `index.php` is allocated.

**Exemple**

```
http://127.0.0.1/vendor/virgiliopontes/autowheremysql/

```

**Note:** You need to replace `127.0.0.1` with the machine address where the example is

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

[](#installation)

### Composer

[](#composer)

Install [Composer](http://getcomposer.org) if you don't have it.

```
composer require virgiliopontes/autowheremysql

```

Or in your `composer.json` file add:

```
{
    "require": {
		"virgiliopontes/autowheremysql": "~2",
    }
}
```

And the just run:

```
composer update

```

and thats it.

### Using

[](#using)

Uses in Controller by adding `use AutoWhere/AutoWhereMysql` after namespace

```
