2017 © Pedro Peláez
 

library 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.

image

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.

  • Tuesday, June 26, 2018
  • by virgiliopontes
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Auto Where MySQL for PHP

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

Install

composer require virgiliopontes/autowheremysql

Examples

The Hello World example.

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

Open the index.php with your favorite text editor and take a look at the source code., (*3)

Open the browser

Navigate to the directory where the index.php is allocated., (*4)

Exemple, (*5)

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, (*6)

Installation

Composer

Install Composer if you don't have it., (*7)

composer require virgiliopontes/autowheremysql

Or in your composer.json file add:, (*8)

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

And the just run:, (*9)

composer update

and thats it., (*10)

Using

Uses in Controller by adding use AutoWhere/AutoWhereMysql after namespace, (*11)

<?php
namespace App\Controllers;

use AutoWhere\AutoWhereMysql; //<--- Here

class YourClass
{
    //...

    public function YourMethod()
    {        
        $autoWhereMysql = new AutoWhere\AutoWhereMysql();
        if(isset($_POST['campofiltro'])){
            $where = $autoWhereMysql->make_where($_POST['campofiltro'],$_POST['operador'],$_POST['valorfiltro']);
            echo $where;
        }

    }
}    

Questions?

Call me on Twitter @virgiliopontes., (*12)

License

MIT, (*13)

The Versions

26/06 2018

dev-master

9999999-dev https://github.com/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.

  Sources   Download

MIT

The Requires

 

filter mysql autofilter autowhere

21/06 2018

0.2.1

0.2.1.0 https://github.com/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.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

filter mysql autofilter autowhere

21/06 2018

0.1.1

0.1.1.0 https://github.com/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.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

filter mysql autofilter autowhere

20/06 2018

0.1

0.1.0.0 https://github.com/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.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

filter mysql autofilter autowhere