devphp-pmro/listing

data listing in tag select field, without formatting

1.0.0 2020-10-13 13:38 UTC

This package is not auto-updated.

Last update: 2024-05-09 04:23:48 UTC


README

#data listing in tag select field, without formatting

To install the library, run the following command:

composer require devphp-pmro/listing

To use the library, simply require the composer to autoload, invoke the class and call the method:

<?php

open the Config.php file in the source folder and enter the credentials for connecting to the database

//define the connection settings to the database for backup

define("CONFIG",["host" => "host,
                "data_base" => "data_base",
                "user" => "user",
                "password" => "password",
                );

default port 3306


require __DIR__. '/vendor-dir/autoload.php';

use Source\_App\Listing;

$selectAll = (new Listing())->selectAll("table","optionValue","visible");

$orderBy = (new Listing())->orderBy("table","optionValue","visible","order","desc"); // type is optional (asc or desc)

$groupBy = (new Listing())->groupBy("table","optionValue","visible","groupBy"); // type is optional (asc or desc)

$groupOrderBy = (new Listing())->groupOrderBy("table","optionValue","visible","orderBy","groupBy","type"); // type is optional (asc or desc)

Developers

License

MIT