PHP code example of sitthichok / pgtest
1. Go to this page and download the library: Download sitthichok/pgtest 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/ */
sitthichok / pgtest example snippets
use Sitthichok\Pgtest\Hello;
$hello = new Hello();
echo $hello->greet(); // Hello, World!
echo $hello->greet('CI4'); // Hello, CI4!
namespace App\Controllers;
use Sitthichok\Pgtest\Hello;
class Home extends BaseController
{
public function index()
{
$hello = new Hello();
echo $hello->greet('CI4');
}
}