PHP code example of datatableswebutility / dwuty

1. Go to this page and download the library: Download datatableswebutility/dwuty 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/ */

    

datatableswebutility / dwuty example snippets



v\Dotenv::createImmutable($_SERVER['DOCUMENT_ROOT'])->load();

use App\webutility;

$config_webutility = array(
    "debug" => array(
        "database_tools" => false
        , "webutility_ssp" => false
        , "tools" => false
    )
    , "database" => array(
        "type" => "mysql"
        , "credentials" => array(
            "host" => "HOST_ENV"
            , "database" => "DATABASE_ENV"
            , "user" => "USER_ENV"
            , "pass" => "PASSWORD_ENV"
        )
    )
    , "crud" => array(
        "create" => array(
            "activ" => true
        )
        , "update" => array(
            "activ" => true
        )
        , "delete" => array(
            "activ" => true
        )
    )
    , "datasource" => "root_table root"
    , "primarykey" => "root.ID"
    , "lang_iso_639_1" => "en"
);
$obj_webutility = new webutility($config_webutility);
$obj_webutility->new_column("root.TEXT_FIELD", "column: TEXT", EDIT, TEXT);