PHP code example of worldvisual / easy

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

    

worldvisual / easy example snippets


// DIR -> (app/config.inc.php)

/**
 * DATABASE CONNECTION
 */

 'hostname' => 'localhost',
 'username' => 'root',
 'password' => '',
 'database' => 'easy',

 /**
 * SITENAME
 * -- host:  yoursite.com.br or yoursite.com.br/sub
 * -- local: localhost or localhost/sub
 */

 'sitename' => 'localhost',

 /**
 * PROTOCOL
 * http://
 * https://
 */

 'protocol' => 'http://',

 /**
 * THEME AND RESOURCES
 */

 'themedir' => 'default',
 'template' => 'default',
 'resource' => 'default'

$query->selectAll('table');

$query->selectWhere('table', 'id=1');

$query->selectWhere('column1, column2', 'table', 'id=1');

$query->selectById('table', '1');

$query->Query('table', $array, 'insert');

$query->Query('table', $array, 'update', 'id=1');