PHP code example of devphp-pmro / listing

1. Go to this page and download the library: Download devphp-pmro/listing library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

devphp-pmro / listing example snippets

 sh



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


>groupOrderBy("table","optionValue","visible","orderBy","groupBy","type"); // type is optional (asc or desc)